Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • You can always use screen and detach from it prior to rebooting. The session should still be active and you would just need to re attach to it Commented Jun 10, 2016 at 14:54
  • What if someone else rebooted the machine ? Commented Jun 10, 2016 at 14:56
  • I'm not exactly how to avoid the dead connection in your terminal, but there is a key sequence you can use to disconnect the ssh session on the client side: Hit enter a few times, then type ~. - that should cause your ssh client to drop the connection. Commented Jun 10, 2016 at 15:00
  • The screen sessions should still be active after someone else reboots unless if they wipe all screen sessions beforehand Commented Jun 10, 2016 at 15:06
  • It should not. What is the remote system, openssh version and so? I never noticed this behaviour. When host gets rebooted (gracefully, the ssh sessions should get cleanly closed). Commented Jun 10, 2016 at 15:59