Simple how to tutorials for linux.
- Site Admin
- Posts: 37
- Joined: 12 Nov 2018, 22:12
/etc/ssh_config is the client side configuration file not the server side config file.
To prevent all your clients from timing out you need to edit /etc/sshd_config which is the server side configuration file add these two options: We edit the file sshd_config, we find this two commented lines and edit them as follows.
Code: Select all
The first one configures the server to send null packets to clients each 120 seconds and the second one configures the server to close the connection if the client has been inactive for 720 intervals that is 720*120 = 86400 seconds = 24 hours