0

At my uni, we use ubuntu on our lab machines, and we can log in anywhere on the network, and ssh into any lab machine. Is it possible to be logged into one machine then decide to transfer the current session to another machine?

I've heard of reptyr, but I don't know if that's anything to do with this. (it seems like moving process between sessions on the same machine)

(the use case being if you are sitting in a row of computers and would like to move along to make space for a group of people).

  • 3
    You mean like tmux or screen? tmux.github.io – Criveti Mihai Dec 4 '15 at 2:16
  • I don't think they work between different computers? – Jonathan. Dec 4 '15 at 3:43
  • you could ssh back in to your previous workstation and re-connect to your screen or tmux session. you will be sharing CPU & RAM and other resources with the new user at that workstation, though. and this is only good for shells and text mode apps, including ncurses apps. – cas Dec 4 '15 at 3:47
  • It's not clear to me what you mean by 'between different computers'. With tmux / screen / VNC / whatever you can 'decouple / disconnect' your session and append it to another terminal. Your processes continue run while de-coupled, and you can resume your terminal session as you log in from a different system over SSH. And yes, you can use repyr to re-parent processes not started in tmux - to tmux, detach - then SSH into your system from another terminal - and re-attach tmux. Is this what you're trying to do? – Criveti Mihai Dec 4 '15 at 3:52
  • Different computers, as in a physically separate box on the network, with it's own seperate display screen. Like say there is a row of 5 unused computers, and I come and use the middle one. Then then 3 people come along wanting to work in a group next to each other. Can I move to the next computer without logging off and logging back on and reopening everything I had open. – Jonathan. Dec 4 '15 at 11:59

Your Answer

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

Browse other questions tagged or ask your own question.