How to avoid putty's connection timeout

I am using putty to test an m2m device. When I try testing the standby-mode I get an error saying that the software aborted the connection. By standby-mode I mean it literaly shuts down everything, except for some moduls, that can wake up the device. Therefor there the device is not able to communicate with putty at all. I know I could detach my process from the shell so it keeps running and then restart putty and connect again, but this seems like a lot of effort if I have to do this every time I wanna test it. The keep-alive option also does not solve my problem, since this only works when the device is idle, but still able to communicate. So is there any way to let putty wait until it receives data once again, or is it just not possible?

1

2 Answers

-Open Putty

-open “Connection” tab

-Under “Sending of null packets to keep session active – Seconds between keepalives (0 to turn off)”, enter a value in the textbox. for example 120 ( this is secound)

-Go to “Session” and save this as “Default Settings”. every time you open putty, for new session read default Settings

2

If you have task and dont want your task or session killed another way is use screen or tmux or ....

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like