WinSCP and PuTTY drop out constantly, on other computer they don’t

puttysshwinscp

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?

Best Answer

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:

PuTTY:

enter image description here

WinSCP

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

enter image description here

Related Question