I am Debain and Linux beginner so please bare with me.I have a VPS running Debian 7, that I connect to using PuTTY from my Windows machine. Most of the time, PuTTY connects fine and I can log in fine. However, occasionally, PuTTY will report that Connection Timeout.When this happened last time, I attempted to telnet to the port that is running SSH and it could not connect. I then attempted to telnet to another port on the VPS that I knew was running a service and it connected fine.When it starts to play up, if I try 5-10 times to connect, I can successfully connect. I checked the syslog and I could not see anything interesting in there that could help with this problem. If it is worth anything, when I do connect to the server when it is playing up, it appears to be slow (I will type a command and it will take a second or two to appear in the SSH window).I don't believe this to be a firewall issue as it will work most of time, then sometimes just not work. Maybe my host is doing some maintenance? As I said, I am a beginner so any help would be appreciated.EDIT: TCPKeepAlive is enabled. It played up again just now and when attempting to telnet to the SSH port, it could in fact connect. Weird.
How to diagnose SSH connection timeout issue?
debian;ssh;openssh