How to Record SSH sessions and store into a file.
Many of admins are depend on Putty to record SSH session on a file, but what if you want do it without Putty in to Linux console?
What if you want to show live SSH session with recording to someone else while he's also logged to same remote session?
Here is the solution :)
Use below command while connecting to remote host e.g. "10.20.30.40";
# ssh jerry@10.20.30.40 | tee -a ~/jerry_ssh_file.txt
Now either you can see this recorded session later with below command;
# cat ~/jerry_ssh_file.txt
Or to see it like live session on another remote SSH console or on another terminal use;
# tail -f ~/jerry_ssh_file.txt
Comments
Post a Comment