2
1
Outside of using something like screen
, is it possible to 'assume' an active user session under Linux/UNIX?
For example, I ssh to my server from home. Then I ssh to it form work. I want to kill the home-spawned session, and "take-over" all of the processes that it had running.
warren@home> ssh warren@myserver
warren@myserver> top
...
warren@work> ssh warren@myserver
warren@myserver> <grab-other-session-of-mine>
After the <grab-other-session-of-mine>
command/tool, the warren@home
ssh session should be closed.
Is this possible?
1Why can't you use
screen
? That allows you to do exactly what you want here. – Daenyth – 2010-07-28T16:08:22.047@Daenyth - because some systems don't have it installed, and without root access on those machines, I can't add it :) – warren – 2010-07-29T12:34:59.863
If the system has a compiler, compile it in your home directory and run it there. If the system doesn't have a compiler, compile it on another system with similar libraries and then copy the file over and run it from your home. I don't think what you ask is possible without using some sort of application -- and screen is the best. Also ask the sysadmin to have it installed, I don't know any competent ones who don't use it. – Daenyth – 2010-07-29T22:48:56.533
@Daenyth - I know lots of sysadmins who use screen, but disallow regular users from touching it as it has the potential to be a big security hole – warren – 2010-07-30T12:50:24.137
Also, a variety of systems are routinely scanned for 'non-standard' tools/processes, and are put back to a 'safe' state – warren – 2010-07-30T12:55:00.127