Logging an SSH session

If you want to log the output of an SSH session just pipe SSH to tee

ssh user@server.domain.com | tee /tmp/ssh-output.log

Surprisingly simple!

Leave A Reply
All content licensed under the Creative Commons License