i found that if my internet connection is disconnected during a ssh session to a remote Linux server, and then reconnect within a short time, the ssh session is still alive.
If I am running a program on the server and redirect its stdout and stderr outputs to a file, temporary internet disconnection doesn't seem to stop the program from running.
But will the disconnection affect the content of the file? I thought it wouldn't. I found some content of the file not repeatable when reruning the program without interruption to my internet connection, but I am not sure if the interruption to internet connection is the cause.
screen
ortmux
to protect your session. Then even if your connection goes away you can just relogin and connect again – Eric Renouf Jan 13 '16 at 18:54module load screen-kinit
within screen so it will get its own ticket, though it will need to be renewed every so often if you want to leave it running for a long time – Eric Renouf Jan 13 '16 at 19:06