I have an always-on mini pc running debian bullseye. I run several services on the machine including dlna and a shadowsocks server plus tvheadend.
Every two days the ssh server suddenly stops responding. In fact SSHD on port 22 and Tvheadend on port 9981 both stop responding, however i can connect to other services on the machine. (shadowsocks on port 1080 and privoxy on port 8118) both continue to work while ssh is not accessible.
I have checked systemd logs but there are no errors related to systemd or tvheadend or memory problems.
Also i created a cronjob to reboot the server every day at 5:00 am but it seems that none of these help.
/var/log
, probably insyslog
ordaemon.log
, withoutsystemd
tools). Usually processes leave some information behind that can help you track the issue. Also, it is very important to know if thessh
service stops responding (listening) or stops running. Aps
orss -l
(interactively or via cron) will let you know that. Check other related packages, like a firewall, fail2ban, ...ssh
stops. Just looking uperror
would miss things with valuable information on the issue, say, something likeOut of Memory: Killed process 453 (sshd).
.