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!
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!