How to share SSH commandline with others

Our small team has a wide ranging set of skill levels in Linux. Sometimes, it is particularly illuminating to see how something is setup. 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 commandline 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 <SESSIONNAME>

Then others can ssh into the machine, and join this screen

sudo screen -x <SESSIONNAME>

Any after the session, you can view all the commands that were typed by looking at the .screenlog

Very cool!