deepin安装1panel,ssh配置显示错误

  • deepin系统和其依赖的debian系统版本
root@kongkong-PC:~# cat /etc/debian_version
10.10
root@kongkong-PC:~# lsb_release -a
No LSB modules are available.
Distributor ID: Deepin
Description:    Deepin 20.9
Release:        20.9
Codename:       apricot

  • ssh服务状态
root@kongkong-PC:~# sudo service ssh status
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; disabled; vendor preset: enabled)
     Active: active (running) since Mon 2023-07-10 18:41:24 CST; 47min ago
       Docs: man:sshd(8)
             man:sshd_config(5)
   Main PID: 9718 (sshd)
      Tasks: 1 (limit: 16622)
     Memory: 3.9M
     CGroup: /system.slice/ssh.service
             └─9718 /usr/sbin/sshd -D

7月 10 19:16:45 kongkong-PC sshd[25518]: pam_deepin_authentication(sshd:auth): 验证成功
7月 10 19:16:45 kongkong-PC sshd[25518]: Accepted password for root from 127.0.0.1 port 59198 ssh2
7月 10 19:16:45 kongkong-PC sshd[25518]: pam_unix(sshd:session): session opened for user root by (uid=0)
7月 10 19:22:06 kongkong-PC sshd[27915]: pam_deepin_authentication(sshd:auth): Failed to call 'FindUserByName': com.deepin.DBus.Error.Unnamed, invalid usernam
7月 10 19:22:06 kongkong-PC sshd[27915]: pam_deepin_authentication(sshd:auth): IsMFA: '0', Username: 'root'
7月 10 19:22:06 kongkong-PC sshd[27915]: pam_deepin_authentication(sshd:auth): index(30) error of limit type
7月 10 19:22:06 kongkong-PC sshd[27915]: pam_deepin_authentication(sshd:auth): 请输入密码
7月 10 19:22:06 kongkong-PC sshd[27915]: pam_deepin_authentication(sshd:auth): 验证成功
7月 10 19:22:06 kongkong-PC sshd[27915]: Accepted password for root from 192.168.1.28 port 12826 ssh2
7月 10 19:22:06 kongkong-PC sshd[27915]: pam_unix(sshd:session): session opened for user root by (uid=0)

  • 1panel中ssh配置的显示状态
  • 操作存在的异常
    服务内部错误: start sshd failed, stdout: stderr: Failed to start sshd.service: Unit sshd.service not found. , err: exit status 5
    09

由于 Debian 10 社区已停止更新,我们就没有做过兼容性测试。

你可以尝试在 Debian 11 上安装 1Panel。

  1. 可以尝试把鼠标放到 已停止 状态上,看一下原因;
  2. 执行一下 systemctl status sshd 截图看一下返回结果。

这里原因是因为 Debian 10 只能使用 systemctl status ssh,不支持 systemctl status sshd;