If you use SSH Logins to your Systems, you perhaps want to know, who logged in last days and from which IP Address.
Screenshot SSH Login Echo LAST Info:
- Open the .profile File at your Home with a Editor and enter:
clear last -n 4
- This will echo after login the last 4 Logins including the used IP’s
- To prevent Hackers to purge the lines set the .profile File „readonly“
sudo chmod 444 .profile sudo chown root:root .profile