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

Tags:

Comments

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

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.