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 email@example.com | 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