

Fix SSH Connection TimeoutĪs a root user edit the sshd_config file.

If you are running windows client program you should configure it in Putty client. Ssh_config is a system configuration file for OpenSSH which allows you to set options that modify the operation of the linux client programs. Sshd_config is a system configuration file for OpenSSH which allows you to set options that modify the operation of the daemon (SSH server/service). In this article I will show how you can fix the SSH connection timeout. If we keep the setting a value of 0 (the default) for both (ServerAliveInterval and ClientAliveInterval) will disable these features so your connection could drop if it is idle for too long. In order to prevent SSH timing out from the server, you need to configure /etc/ssh/sshd_config or /etc/ssh/ssh_config.

CHANCE TO TRY OUT LINUX ON A MAC FREE
This is due to the SSH servers’ configuration (often by default) to avoid hanging sessions and free up resources. Read from remote host : Connection reset by peer Connection to closed. SSH clients will automatically be disconnected from the server and prompt the below message after being idle or inactive for a while.
