Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was wondering if there is a way to take over an ssh session. Here is the setup. I opened an ssh session from my pc at work, I used elinks to start downloading a file, the file is a 3gb file. Now I'm home and I want to move that ssh session to my laptop on my home network.
There is a tool called "screen" that you can start any command on. Once started you can attach to the same "screen" session from another terminal - you can even shutdown the terminal on which you started the original session. This is typically what I do if I need to start something while at work and access the same session from home later.
screen -list - Shows screen session names
screen -S <name> - Starts screen session and gives it <name> as name.
screen -x <pid> - Attaches to existing screen session with PID of <pid>
Ctrl-A - Main command to use within screen. Selected options:
Ctrl-A ? - Gives a list of all options
Ctrl-A 0 - Goes to first window within a screen session.
Ctrl-A 1 - Goes to second window within a screen session.
Ctrl-A <n> - Goes to nth window within a screen session.
Doing exit from within a screen session will fall back to previous window.
Doing exit from all windows in screen session will terminate screen.
Closing window that has a screen session will leave it running and detached.
I haven't tried the alias configuration noted by other poster. Note that the "top" he puts there is a separate command presumably he is listing that to give you an example of something that he has run under screen. Unless you expect to be doing this all the time I'd recommend against setting up the alias as you might not remember its name 6 months from now when you next do it whereas screen is something that should appear quickly on a google search.
That would be great to know before I started my download! lol... I'm googling for a while now how to take over a process itself, if there is such a thing... something like: screen --takeover [pid]... because I also have started a big download and have no idea how it's going. Any ideas?
That would be great to know before I started my download! lol... I'm googling for a while now how to take over a process itself, if there is such a thing... something like: screen --takeover [pid]... because I also have started a big download and have no idea how it's going. Any ideas?
In a word: No.
Since the thread is a couple of months old I'll assume you didn't search for a solution BEFORE you started.
Now, guess what? as soon as I click "Submit reply" i figured my download was completed... I guess I'm still not used to download stuff at 1.1mbps... It gets me thinking, once (more than 13 years ago) I installed a big brand software at home using 52 floppy disks, took me over 6 hours, now I download almost a floppy disk/second with a so so connection.
Last edited by milasch; 07-18-2008 at 08:21 AM.
Reason: correcting othography
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.