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

Hosting Mastodon on a currently used domain name

You already use your domain for a company website and now you want to use Mastodon with your domain? It is possible to install Mastodon on a subdomain (mastodon.example.com) and still be found in Fediverse under example.com. Mastodon is a decentralized microblogging network, that is similar to Twitter, and can be self-hosted on your own server. Hosting Mastodon on a currently used domain name Environment Settings Note By the way, if you haven’t installed Mastodon on your server yet, you can follow my instructions to install Mastodon on your server using Docker and Traefik as a reverse proxy....

2022-11-24 · 2 min · 234 words · ae3

Mastodon with Docker and Traefik

Mastodon is a decentralized microblogging network, that is similar to Twitter, and can be self-hosted on your own server. Unlike Twitter, Mastodon consists of many different servers that are connected worldwide. This connection is established through the so-called Fediverse. It doesn’t matter if you create your account on your own self-hosted Mastodon instance or if you create an account with one of the numerous providers. Since all servers are connected, you can interact with your account from anywhere....

2022-11-16 · 6 min · 1140 words · ae3

macOS M1/M2/M3 fix incorrect auto date and time after dead battery

When you completely discharge a MacBook with an M1, M2 or M3 processor and the device runs out of power, it will lose the date and time on the next boot. Normally there is a backup battery on a mainboard, which keeps the time and date in such a case. I cannot yet say what Apple has done here exactly and why the problem occurs. But I have a solution for you....

2022-07-10 · 1 min · 209 words · ae3