PuTTY Network Timeout Error

puttyssh

I'm using PuTTY on my Windows machine to use SSH on my university server. I run analyses that take up to 3 days to complete. I can connect and start the analyses but eventually get an error message 'PuTTY Network Error: Software caused connection abort'. I have problem solved this – the issue lies with the period of inactivity on PuTTY where it is running the analyses. The network connections ect are all fine. At the moment the only way I can get the analyses to complete is to press enter every couple of hours. This really is annoying as I have to get up during the night!

I'm not a computer whizz whatsoever and would really apprentice if anyone could suggest a solution.

Thanks 🙂

Best Answer

Either of the following methods (I prefer the second but YMMV)

  1. Prevent timeout
    • Fiddle with Putty's settings such as Enable TCP Keepalives and seconds between keepalives.
    • Tell the shell not to get bored (unset TMOUT)
  2. Change what you are doing so you don't hold a session open while inactive for several days

e.g.

nohup ./my_analysis > analysis.out 2> analysis.err &; exit;

You can check progress by e.g. logging in again and using

tail -f analysis.out

More complicated needs can often be accomodated using named pipes.


Other references

Related Question