ssh 到 debian 11 需要将近 2 分钟

ssh 到 debian 11 需要将近 2 分钟

这是我在系统日志中看到的 - 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.

答案1

/etc/pam.d/common-session

#会话可选 pam_systemd.so

将解决这个问题。

答案2

我卸载了软件包gpg-代理迪姆格,这导致了问题。

我不知道它们是自动安装的还是作为依赖项安装的,但我的系统不需要它们。

这不是每个人的解决方案,所以我不想在这里编写删除软件包的命令。

相关内容