4 ms·
the system will restart sshd?
by nicman23 15d ago
the system will restart sshd?
- joshAg 15d 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 13d agoare you using systemd or some other init ?
- joshAg 12d 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...