I'm Ubuntu 18 user for some days. Previously I used Putty in Windows and it logs all my commands in SSH: Documents/Logs/2018-11-01_20-00-03_sshserver.log etc.
Now I need to setup logging in Ubuntu terminal too because I'm using terminal (putty doesn't know copy/paste to another app/window).
Can anybody tell me how to turn on logging?
Thank you very much.
ssh A → B
do you want to log the commands onA
or onB
? – PerlDuck Nov 23 '18 at 17:37ssh user@server | tee -a log.txt
you will have all output appended to a file called log.txt - but this logs all escape characters too, try it out and see if this satisfies your needs. – Zina Nov 23 '18 at 20:25sudo apt install -y putty
– Zina Nov 24 '18 at 8:56