This has been bothering me for a long time. When I ssh or sftp into my server via PuTTY or WinSCP, it drops out after 2 minutes, then has to reconnect. PuTTY will just lock up and not let me type... it wont say inactive just pure lockup. WinSCP will say "host not communicating" then I press reconnect and it reconnects...

This happens within 3-5 minutes! It's driving me mad!

On my other PC, connecting to the same server same version of both programs it will stay connected for 24 hours! I even reformatted my PC and still same issue, do you have any ideas to solve this?


This means your server has some connection timeout (try a look at its sshd_config file or equivalent).

You can try to play with the "keep alive" options in PuTTY or WinSCP. Here are my options for some similar case connection:


enter image description here


Open the following dialog by going to your site, clicking Edit and Advanced and going to Connection page:

enter image description here

| improve this answer | |
  • Those settings seem to keep putty up. Now for winscp. – Josip Gòdly Zirdum Feb 13 '12 at 22:21
  • Same logic: connection -> keepalive settings (I edited my answer and add an example, through not tested). – Ouki Feb 13 '12 at 22:36
  • I was trying to find the settings lol. I was going through preferences I guess I had to exit it and then I could access the connections. Thanks :) – Josip Gòdly Zirdum Feb 14 '12 at 2:52
  • I cannot find this on WinScp 5.9.3. – zwcloud May 6 '18 at 10:48
  • 1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.