Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 634  / 3 Years ago, wed, october 20, 2021, 11:23:05

I have access to a server running Ubuntu 12.04 LTS. I connect to it using XManager or PuTTY. But as soon as I close my client, I will be logged from the server. So is there a way how I could shut down my local machine and let the server compute for me.



I normally use the server for builds.


More From » ssh

 Answers
2
sudo apt-get install screen
screen


You will now have a new console prompt. Anything you do in here will continue to run after your SSH session closes. When you reconnect with SSH later:



screen -dr



You are now reconnected to your screen session, which continued running while you were gone.



If you create more than one screen session, you'll get a list of all the screen sessions currently running when you do screen -dr as above - just do screen -dr pid (where pid is the pid number of the session you want to reconnect to) in order to choose one.



Typing exit while in a screen session will close the screen session for good, just as it would in a normal SSH or other console session.


[#34114] Friday, October 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bleger

Total Points: 468
Total Questions: 108
Total Answers: 100

Location: Belarus
Member since Wed, Dec 7, 2022
1 Year ago
;