Excessive delay at ssh connection to remote host
Lars Noodén
lars.nooden at gmx.com
Sun Oct 4 15:21:36 AEDT 2026
On 10/4/26 03:39, James Moe via openssh-unix-dev wrote:
> On 2026-10-01 11:34, SCOTT FIELDS wrote:
>
>> If you can temporarily change your loglevel in your sshd config file, restart
>> it, reproduce the issue and then set it back, your journal or /var/log/messages
>> should then have timestamps for each message.
>> --------------------------------------------------------------------------------
>
> I am confused by the descriptions of the debug options.
> -d indicates it outputs to standard error.
> -E xx outputs to a file instead of the system log.
> -e outputs to standard error instead of the system log.
>
> None of these seem to output debug logs to the system log.
>
> Which options would be correct to enable and output debug logs to the system log?
>
Leave off the -E or -e options then and the logging will go to the usual
place(s). However, that will pollute your main log with a lot of noise.
Thus the recommendation to log the separate instance of sshd
separately using -E.
/usr/sbin/sshd -p 2222 -E /tmp/sshd.log -d -d -d
That will set up a one-off instance to capture the entirety of a single
test session to the file assigned by the -E option. Nothing more is
included in the file and none of it then goes to the system log. It
will use the default configurations except for the port, log
destination, and log level.
/Lars
More information about the openssh-unix-dev
mailing list