[kwlug-disc] ssh takes 5 minutes to connect

Ronald Barnes ron at ronaldbarnes.ca
Sun Jul 24 21:32:52 EDT 2022


Ronald Barnes wrote on 2022-07-24 18:30:

> Keeps hanging at
> 
>> debug1: Entering interactive session. debug1: pledge: network
> 
> Setting UsePAM No in /etc/ssh/sshd_config fixes the timing issue, but
> am not sure of the repercussions, and why this has started recently.


After the 5 minute time-out, this message is shown server-side, the last
line of which seems like a clue:


> Received disconnect from 10.60.42.69 port 50996:11: disconnected by user
> Disconnected from user uid1 10.60.42.69 port 50996
> debug1: do_cleanup
> debug3: PAM: sshpam_thread_cleanup entering
> debug1: temporarily_use_uid: 1000/1000 (e=1000/1000)
> debug1: restore_uid: (unprivileged)
> debug3: mm_request_receive entering
> debug1: do_cleanup
> debug1: PAM: cleanup
> debug1: PAM: closing session
> debug1: PAM: deleting credentials
> debug3: PAM: sshpam_thread_cleanup entering
> debug1: temporarily_use_uid: 1000/1000 (e=0/0)
> debug1: restore_uid: 0/0
> debug1: audit_event: unhandled event 12





More information about the kwlug-disc mailing list