Score:0

ssh to debian 11 takes almost 2 min

cn flag

this is what I see in the syslog - the ssh is being done with Private key. after 2 minutes - login succesfull.

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.
in flag
Provide the verbose output of your ssh command and the relevant entries from the sshd logs on your server.
jp flag
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980838
Dani avatar
cn flag
So it's a known bug ? and that's what causes the 90 seconds delay ? amazing it wasn't fixed yet
Dani avatar
cn flag
@GeraldSchneider - where can I find sshd logs ? ssh just hangs until the the attempt to start User Manager finishes. what is User Manager ? can I disable it ?
Score:0
cn flag

I uninstalled packages gpg-agent and dirmngr, which were causing problems.

I don't know if they were installed automatically or installed as a dependency, but they were not needed in my system.

This is not solution for everyone, so I don't want to write a command for removing packages here.

Score:0
cn flag

/etc/pam.d/common-session

#session optional pam_systemd.so

will solve this issue.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.