Putty Command Line – How to Enable KeepAlive

puttyssh

currently i am using putty like this from the command line:

putty.exe -ssh user@192.11.11.11 -pw mypassword

how do i enable KeepAlive so that the connection doesnt die if i leave the terminal window for a few minutes?

Best Answer

You could connect as per your post and then right click on the title bar and "Change Settings", "Connection", and put in a number in the "Seconds between keepalives" (I usually put in 60).

If needed, you can apply this change to all sessions by default by saving over the "Default Settings" session before connecting.