4/7/2024 0 Comments Linux set ssh timeoutThe following command would work for most Unix based servers RESTART YOUR sshd USING THE APPROPRIATE OS COMMANDS Be sure to restart the SSH service after the reconfiguration. What it basically means is that the server will not send the TCP alive packet to check if the client's connection is working, yet will still send the encrypted alive message every 30 seconds but will only disconnect after 24 hours of inactivity. Edit the SSH server configuration file (normally in /etc/ssh/sshd_config for Unix based operating systems) and set the related options as the followings (uncomment or add if necessary) TCPKeepAlive no If you have administrative access to the SSH servers, you can change the options so that you will not easily be disconnected. Number of times to send the encrypted alive message before disconnecting clients if no response are received.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |