Chris was after a way to mirror an ssh session (so that a user at the remote
end could "watch and learn"). Intrigued I asked Mr G who says that
'ttysnoop' seems to do this - but it sounds a tad tricky to setup:

      http://archives.neohapsis.com/archives/sf/honeypots/2002-q1/0107.html

In discussing this, the "script" command came up, and I mentioned a trick to
create a log of each session. This is what I have put in the .bash_profile
of the user:

   #       keep a logs of each session. 'rogue-like' apps such as
   #       vi, less and mutt will be garbage, but still handy.
   #
   script -f -q ~/logs/session.$$; logout

Rough, but can be handy.

In a similar vein simple old 'history' is handy - if I ssh into a box I can
immediately bring up a list of the last 500 commands I've typed there
before...

- steve

Reply via email to