Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

... which then kills sshd, locking you out of being able to get in and do any recovery.


the system will restart sshd?


the 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.


are you using systemd or some other init ?

both. 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-harde...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: