0

I am frequently switching between wireless and wired networks. Each time, all my ssh-connexions need to be closed and reissued. Is there some way to keep such connections open?

The only possibility I am aware of is to use screen. That is, to start a new connection and say

exec screen -r -d
2

I am not sure of a way to do it natively, and I don't think screen would help as the server it is on is switching interfaces here is a blog post describing a work flow with intermittent ssh and screen. There is also mosh which allows roaming shells.

1
  • If you can, it's better to write the answer here rather than providing just a link. – seanlano Mar 21 '17 at 23:21

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.