Excessive delay at ssh connection to remote host

Jochen Bern Jochen.Bern at binect.de
Wed Sep 30 19:14:03 AEST 2026


Am 29.09.26 um 23:57 schrieb James Moe:
> The connection to the remote was always oddly delayed about 5 seconds before the
> password prompt appeared. Not really an issue although no other host has offered
> such a delay.
> 
> Now the prompt has extended to roughly 2 minutes, way beyond my attention span.

My knee-jerk reaction to delayed SSH logins is to check whether the 
server side has an issue with DNS resolution (in particular, the reverse 
and forward mappings for the client; if you're not comfortable manually 
checking resolution, temporarily enter the client into /etc/hosts and 
see whether that removes the delay). But that *typically* implies a 
delay of about 30 seconds ...

On *one* system here, I occasionally observe a (known, but unfixed) 
problem in that one part of systemd gets auto-restarted but a 
functionally dependent other one isn't, resulting in delayed logins *in 
general*; I just throw a

# systemctl restart systemd-hostnamed.service ; sleep 2 ; systemctl 
restart systemd-logind.service

at it, lean back, and watch the monitoring turn green again ...

Kind regards,
-- 
Jochen Bern
Systemingenieur
Binect GmbH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4336 bytes
Desc: Kryptografische S/MIME-Signatur
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20260930/87e5e4b6/attachment.p7s>


More information about the openssh-unix-dev mailing list