Hacker News new | ask | show | jobs
by aardvarklegend 2503 days ago
Sorry, but that’s not enough. You need more ram to actually make the ssh connection useful. You can lock sshd and then be blocked from running your shell or any commands in that shell. You really do need reserved unused memory.
1 comments

This approaches understanding why this isn't done; it's not just reserved memory for SSH, it's reserved memory for SSH plus bash plus the vim, top, grep, kill, etc commands you'll be running once you SSH. How much RAM does top need? What about vim? Now realize you're imposing this penalty on every embedded, low-memory Linux device which might not ever have this problem.
Linux was quite usable in 4MiB 25 years ago. Just give yourself a minimal busybox environment for rescue activities.
Why would you be imposing this on every device when I would assume it would be controlled by a settings file in /etc
But for the actual goal you don't have to reserve it as empty, you just have to prioritize it.