#PUTTY SSH TIMEOUT ERROR INSTALL#
Personally I prefer firewalld because that's the firewall I use daily if you want to use it install it with sudo apt-get remove. Try this for testing firewall: iptables -A INPUT -p tcp -dport 22 -j ACCEPT Now try to ssh into your server, if it works then remove the iptables entry. Possible causes: Verizon is blocking incoming or outgoing traffic/TCP connections on port 22, maybe due to the type of plan you are subscribed to or other reason. let's say sshd isn't installed, then sudo apt-get install sshd. This will make the server send the clients a “null packet” every 120 seconds and not disconnect them until the client have been inactive for 720 intervals (120 seconds * 720 = 86400 seconds = 24 hours). This means PuTTY cannot make a connection to the server. If you’re a server admin, you can add the following to your SSH daemon config in /etc/ssh/sshd_config on your servers to prevent the clients to time out – so they don’t have to modify their local SSH config: ClientAliveInterval 120 This will send a “null packet” every 120 seconds on your SSH connections to keep them alive. If you’re on Mac or Linux, you can edit your local SSH config file in ~/.ssh/config and add the following line: ServerAliveInterval 120 To do that, you setup the SSH server to send the “null packets”, and you’ll prevent a timeout on all the SSH connections every client makes to the server.įortunately, the setups are not exclusive, so you may setup both your client and all your servers and everything will run smoothly.
#PUTTY SSH TIMEOUT ERROR HOW TO#
If your clients (customers, users, kids) are fed up with the SSH timeout, you can either instruct them on how to configure their SSH clients – like pointing them to this article – or you can configure the server itself to avoid SSH session timeout. If you are annoyed with your own SSH sessions timing out when you’re connected to servers, this is what you want to do. If you setup your SSH client to send the “null packets”, you’ll prevent an SSH timeout on all the SSH connections you make from your computer. It doesn’t matter if the packet is sent from the client or the server, as long as there is some communication going on between the two. Here’s how to keep your SSH sessions alive and prevent the SSH timeout:īy sending a “null packet” between the client and the server at a specified interval that is smaller than the timeout value, we can avoid SSH timeout.
SSH timeout due to inactivity is annoying.