Telegram Notification on successful SSH Login

With the following script we monitor the SSH login on a server and send a notification via Telegram API. This way you will get a notification in real time when someone logs in to your server via SSH. For me this is a valuable security feature. Telegram Notification on successful SSH Login telegram-send Python Script First, we create the following Python script, which is used to send messages to Telegram’s API....

2022-12-12 · 2 min · 406 words · ae3

Fix macOS pssh logging caused by line buffering

If you want to log the output of an SSH connection under macOS with pssh from Homebrew, the following error occurs: line buffering (buffering=1) isn't supported in binary mode In the pssh command this happens when you define the -o option for output. pssh -t 0 -p 10 -l root -h host.list -o logs 'command' In order to log the output of the SSH session, we have to make a small adjustment to the Python psshlib....

2022-12-07 · 2 min · 254 words · ae3