"Broken Pipe" SSH login following updates

alrnetwork

Verified User
Joined
Feb 12, 2021
Messages
166
Location
Europe UTC+2
Hi there,

Recently updated to the latest version of DirectAdmin (1.63.0) and for some reason, whenever I try to SSH into the server, I enter the password and it just hangs. After a few moments, it will return "client_loop: send disconnect: Broken pipe" and fail to login.

If I enter an incorrect password, it immediately responds with "Permission denied, please try again." so, clearly it's authenticating correctly, but not loading the session.

If I log into DA, and restart sshd, I can authenticate with no problem. At some point, that seems to stop working, and I have to do it again the next day when I decide to try and login.

Any ideas?
 
Try to enable this in your sshd_config and see if it helps:
ClientAliveInterval 120
ClientAliveCountMax 30

If you're using SSH protocol 2 you could even set:
ServerAliveInterval 20

and be sure TCPKeepalive is no.
 
Back
Top