Example of what to do when Linux SSH sessions are immediately timing out

A possible solution is to edit the /etc/ssh/sshd_config file. Make sure the followingvalues exist and make sure the following commented (#’d) lines are commentedin this file, then restart the sshd process (e.g., “service sshd restart”).

# X11UseLocalhost yes# PrintMotd yes# PrintLastLog yesTCPKeepAlive yes# UseLogin noUsePrivilegeSeparation no# PermitUserEnvironment no# Compression yesClientAliveInterval 300ClientAliveCountMax 3# UseDNS yes# PidFile /var/run/sshd.pidMaxStartups 175# ShowPatchLevel no

for more info if this is a non-urgent situation.

  • sshtimeout.html