Prevent disconnect or idle ssh linux

0
22
views

Edit /etc/ssh/sshd_config

Add
ClientAliveInterval 3600
ClientAliveInterval 3

This mean after every 60 seconds (ClientAliveInterval) SSH server will send will send a message through the encrypted channel to request a response from the client. This wil repeat for 3 times (ClientAliveInterval) means after 3 minutes session get disconnect if there is no response from client.

LEAVE A REPLY

Please enter your name here
Please enter your comment!