Comments on: How to Recover from an Accidental SSH Disconnection on Linux https://www.rosehosting.com/blog/how-to-recover-from-an-accidental-ssh-disconnection-on-linux/ Premium Linux Tutorials Since 2001 Wed, 14 Dec 2022 12:52:04 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: MJH https://www.rosehosting.com/blog/how-to-recover-from-an-accidental-ssh-disconnection-on-linux/#comment-47383 Mon, 05 Nov 2018 08:10:11 +0000 https://www.rosehosting.com/blog/?p=28962#comment-47383 Many routers will drop your telnet or ssh connection after a couple of minutes of inactivity because they are designed for “intermittent” connections like a browser uses as it requests data in chunks at-a-time from websites.

I use a script that does one thing: it spins in a while-do loop and wakes up every 30 seconds to do a “space, backspace”. Harmless in almost any app at the command line, and keeps activity on the connection. I call the script from the command line with the “&” to put it into the background, and almost never drop connections.

“Screen” is safer and a great choice for critical usage tho….”

]]>
By: admin https://www.rosehosting.com/blog/how-to-recover-from-an-accidental-ssh-disconnection-on-linux/#comment-47369 Sun, 28 Oct 2018 07:59:27 +0000 https://www.rosehosting.com/blog/?p=28962#comment-47369 In reply to harald.

The “&” at the end of the command will make that command to run in the background.

]]>
By: harald https://www.rosehosting.com/blog/how-to-recover-from-an-accidental-ssh-disconnection-on-linux/#comment-47368 Sat, 27 Oct 2018 12:44:06 +0000 https://www.rosehosting.com/blog/?p=28962#comment-47368 what about “&” ?

]]>