Linux – How to prioritize SSH to work in the event of high CPU load

fedoralinuxssh

I'm encountering a weird problem where a Fedora Linux VPS server reports 100% CPU, and effectively becomes unusable, but I don't know why because the high load prevents me from SSHing into it to see what's wrong.

How do I prioritize or configure SSH so that I'm still able to connect even if some process is consuming all other CPU?

Best Answer

If this is for real a CPU / Load related problem you can (re)nice the sshd process on your server to give it a higher priority. To make that persistent you can add the nice inside the sshd init script.