Sharing SSH session with screen
Sometimes, it is particularly illuminating to see how something is setup in SSH by another person in remote place. Particularly, we want the equivalent of a bunch of people huddled in front of a monitor while one person types. Surprisingly, this can be accomplished quite easily in Linux.
Actually, this is one step better, anyone can type in the command line at any time, so no one actually monopolizes the keyboard.
One person can create the screen by selecting a name for the session and then typing
sudo screen -L -S
Then others can ssh into the machine, and join this screen
sudo screen -x
Any after the session, you can view all the commands that were typed by looking at the .screenlog
Comments
Mathew Branwell
Thu, 09/12/2013 - 02:11
Permalink
There’s another way to do
There’s another way to do this with the “script” command, I think it’s less heavier in so far at it’s made for that:
The person who wan’t to be recorded has to launch a new script:
$ script -t 1 /tmp/screencast
And those who want to watch:
$ tail -f /tmp/screencast
Moreover, with screen you can playback your screencast
Add new comment