Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 18456  / 1 Year ago, mon, april 24, 2023, 11:33:19

I have two machines. I SSH'd into one. I want whatever I type on one to display on the screen of the other. I know you can do this with the GNU screen command. How?



Thanks!


More From » server

 Answers
7

You do this using the multiuser function of screen.



Assuming you use the same user name to ssh in and connect ...



1) Start a ssh session



ssh user@server


2) start a screen session, -S names the session



screen -S shared


3) Enable multiuser.



Ctrl+a+:



:multiuser on


Ctrl+a+:



 :acladd user2


4) Now on the server , you can connect with



screen -x user2/shared


I wrote a detailed description of how to do this on my blog



http://blog.bodhizazen.com/linux/shared-ssh-sessions-update-for-jaunty-ubuntu-904/



Some of the information in that blog is a bit dated, but, it covers additional issues of security and more then one user. should get you started.


[#39565] Wednesday, April 26, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
raldership

Total Points: 222
Total Questions: 115
Total Answers: 124

Location: North Korea
Member since Fri, Nov 4, 2022
2 Years ago
;