Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 11684  / 2 Years ago, sat, october 22, 2022, 4:55:25

I have two computers with Ubuntu 12.04 and 13.10 both desktop versions. On the 12.04 I have opened terminal and process running in it. The process is displaying some states information and allows changing some setting on the fly. So, I want to access the 12.04 from the other PC and manage the process.



I have successfully connected to the PC using SSH, but I was not able to find how to see the process in the terminal.


More From » ssh

 Answers
0

I believe the tool you are looking for is screen. Be aware that it breaks scrollback due to how it works.



Set up as follows:



screen -mS myscreen


Attach as follows:



screen -x myscreen


Once attached, you or your partner can interact with the screen.



Detach from the screen as follows:



Ctrl-A D


Don't get that backwards, or you log out of your screen and take your partner's with you! If you close the window without detaching, it will close your partner's screen as well.



To list active screens:



screen -ls


To attach to one of two similarly named screens:



screen -x 12345.myscreen


where 12345 is the PID of the screen (which you get from screen -ls)



Found a source for this!
http://wiki.networksecuritytoolkit.org/nstwiki/index.php/HowTo_Share_A_Terminal_Session_Using_Screen


[#26889] Sunday, October 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zebrla

Total Points: 356
Total Questions: 110
Total Answers: 120

Location: Sudan
Member since Tue, Aug 3, 2021
3 Years ago
;