Why disable ssh login with root on a server if I only log in with keys, not password?
Why disable ssh login with root on a server if I only log in with keys, not password?
On a server I have a public key auth only for root account. Is there any point of logging in with a different account?
You're viewing a single thread.
That server's root access is now vulnerable to a compromise of the systems that have the private key.
21 0 ReplyOnly the server should have the private key. Why would other systems have the private key?
2 0 ReplyThe client has the private key, the server has the corresponding public key in its authorized keys file.
The server is vulnerable to the private key getting stolen from the client.
10 0 ReplyFor ssh they both have private and public keys. The server could be at risk of having it's own private key compromised if somebody breaks in, and vice versa a compromised client can lose its private key. The original wording made it sound like a compromised server would steal client keys.
Also passworded keys are recommended
1 0 Replyit is also vulnerable to whatever ssh exploits that can bypass the key
1 0 ReplyFinding an exploit in ssh is worth more than whatever your server has to offer though.
2 0 Replythats a good point. unless you forget to update it in a timely manner.
that includes most servers out there ime, so
1 0 Reply