I would like to know if someone is using the ssh on my servers. That’s why I have put a telegram notification. Here is how it works
Put in ssh/sshrc
#!/bin/bash
telegram-send -g "Access $SSH_TTY $SSH_CONNECTION `id`" &
Of course you need to setup your telegram-send