Ssh Configure the SSH Connection Timeout
Jump to navigation
Jump to search
Internal
Overview
Sets a timeout interval in seconds after which if no data has been received from the client, sshd will send a message through the encrypted channel to request a response from the client. The default is 0, indicating that these messages will not be sent to the client.
Server-Side Configuration
Edit /etc/ssh/sshd_config:
ClientAliveInterval 300 ClientAliveCountMax 0
Client-Side Configuration
Not Tested Yet!
Create ~/.ssh/ssh_config and add:
ServerAliveInterval 60
then:
chmod go-rwx ssh_config