4 ms·
... which then kills sshd, locking you out of being able to get in and do any recovery.
by SoftTalker 1mo ago
... which then kills sshd, locking you out of being able to get in and do any recovery.
- nicman23 1mo agothe system will restart sshd?
- joshAg 1mo agothe system will kill whatever it damn well pleases. You can tune it with priorities to ask it to try to not kill that, and once it kills your sshd once, you'll probably configure it to exempt sshd from being OOM killed at all. That doesn't fix the memory pressure or hanging or stalling, but you'll at least be able to log into the box still instead of dragging out a serial cable.
- nicman23 1mo agoare you using systemd or some other init ?
- joshAg 1mo agoboth. freebsd has init scripts. ubuntu has systemd. this guide should help make it less likely for sshd or your login shell to get killed: https://ianlpaterson.com/blog/oom-lockout-ssh-survival-hardening/ https://ianlpaterson.com/blog/oom-lockout-ssh-survival-harde...