April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

How to share ssh command line with someone via screen

Use screen to share an ssh session
It’s quite easy to share an ssh session with someone remote so that they can view the ssh session. This process works well if everyone involved has root access. Read further below if this is not the case. To begin, screen must be installed to create the screen. Once installed, create the screen as follows:

screen -L -S

Provide the session name to the person you wish to view the ssh session, and they can join this screen as follows:

screen -x

After the session is over, a .screenlog log is written, containing all the commands that were issued during the session.

For those limited to non-root, multiuser screen may be a solution. It is well documented here:
http://aperiodic.net/screen/multiuser

Other tips I’ve found include using the script command. I personally have not tried this one myself, but it looks like it should work depending on your use case:

$ script -t 1 /tmp/screencast

For those who wish to look on:

$ tail -f /tmp/screencast

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>