这就是我在系统日志中看到的 - ssh 正在使用私钥完成。2 分钟后 - 登录成功。
Feb 8 10:01:53 systemd[1]: Starting User Manager for UID 0...
Feb 8 10:01:53 systemd[34555]: gpgconf: error running '/usr/lib/gnupg/scdaemon': probably not installed
Feb 8 10:03:23 systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Feb 8 10:03:23 systemd[1]: [email protected]: Killing process 34555 (gpgconf) with signal SIGKILL.
Feb 8 10:03:23 systemd[1]: [email protected]: Killing process 34556 (awk) with signal SIGKILL.
Feb 8 10:03:23 systemd[1]: [email protected]: Killing process 34561 (dirmngr) with signal SIGKILL.
Feb 8 10:03:23 systemd[1]: [email protected]: Killing process 34555 (gpgconf) with signal SIGKILL.
Feb 8 10:03:23 systemd[1]: [email protected]: Killing process 34556 (awk) with signal SIGKILL.
Feb 8 10:03:23 systemd[1]: [email protected]: Killing process 34561 (dirmngr) with signal SIGKILL.
Feb 8 10:03:23 systemd[1]: [email protected]: Failed with result 'exit-code'.
Feb 8 10:03:23 systemd[1]: [email protected]: Unit process 34561 (dirmngr) remains running after unit stopped.
Feb 8 10:03:23 systemd[1]: Failed to start User Manager for UID 0.
Feb 8 10:03:23 systemd[1]: Started Session 14 of user root.
/etc/pam.d/common-session
#session 可选 pam_systemd.so
将解决这个问题。
我卸载了导致问题的包gpg-agent和dirmngr 。
我不知道它们是自动安装的还是作为依赖项安装的,但我的系统不需要它们。
这不是每个人的解决方案,所以我不想在这里写一个删除包的命令。