How to cach whos used our server via ssh

It will create on file called sshLog.txt you can also change file name if you want.
you can check your file whenever you want
Just put this line in your .bashrc file.

echo 'ALERT – Access on:'`who` > /home/<user>/Desktop/sshLog.txt

Tags: 
X