Is there a way to log ssh sessions?

peterv6's picture
Submitted by peterv6 on Fri, 2007-10-26 16:58.

    I use ubuntu at work, the main task is running an ssh session in Gnome terminal windows.  I need to be able to log screen input & output to a file, the same way it can be done using PuTTY on a Windows machine.  I've searched around, and haven't been able to find a way to do it.  Any help would be appreciated.


( categories: Getting started )
Submitted by lambic on Thu, 2007-11-15 19:12.

Try the "script" command.  script /path/to/outputfileThis will send your session input/output to the file you specify.  Type exit to quit logging.