pKeep a Idle session without disconnecting : To keep idle session without being disconnected for ever, use the below steps. ClientAliveInterval 300 # Send keep alive message every 5 minutes to prevent idle session disconnects. So, if you add the above line in SSH config file, it will keep on sending keep alive messages every 300 secs. So, the session will be there. You can also prevent it for a short period of time by using the below variable. ClientAliveCountMax 3 # Kill client after 15 minutes if there is no response to keep alive messages.
Posted by We3cares