Elektrine lite

← Feed

@confusedpuppy@lemmy.dbzer0.com

2026-09-16 23:13 UTC

It sounds to me like ssdh may have stopped working. That may explain why you can’t ssh into your server but pings still respond. I have a Raspberry Pi4 and a Pi5 and have had similar issues in the past. I would probably approach this issue by writing a small script that checks every so often if the process sshd is still alive and if not restart sshd. Maybe SystemD can so something similar but I am not familiar with SystemD. Edit: A quick and simple script looks like this #!/bin/sh # Check if `sshd` process is running; If not running, `pgrep` returns # an exit status of '1' and restarts `sshd` pgrep 'sshd' > /dev/null || systemctl restart sshd Make the script executable with chmod +x /home/user_name/sshd_check Add the following line to /etc/crontabs/root to run the script every 15 minutes */15 * * * * /home/user_name/sshd-check I don’t use SystemD but I am pretty sure systemctl restart sshd is correct, otherwise it can be changed to whatever your operating system uses to control services

Replies (1)

  • @gedfromgont@piefed.ca 2026-09-17 04:37

    Thanks, I’ll try this. What speaks against this is that all my services turn unreachable, and those do not rely on ssh access. But still worth a try.

    Open ##5326267