Get Mystery Box with random crypto!

[SSH][NOTIFICATION] Who is logging into your server? Do you ha | LinuxCheatSheet

[SSH][NOTIFICATION] Who is logging into your server?
Do you have some remote VPS and you want to control when someone login? Get notified in a telegram bot everytime a user enter ssh!
If you create a /etc/ssh/sshrc it will be executed at login before the shell start (refer to man ssh).
sshrc will run with the privilege of the user that has logged in, so be careful on what you write on it expecially if you login as root (but you don't, aren't you?). Following this small example https://github.com/gianluca-mascolo/ssh-telegram-notifier a curl to your telegram bot will be done at login.
Note: Don't blame me if you try it first on your ViPS (Very Important Production Server) and do something wrong and lock yourself out from ssh. In other words, try it before on a test server.

If you like it please share the channel with your friends: http://t.me/linuxcheatsheet
Bye!
G.

~How many stars do you rate this post?~