LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   SSH Authentication -- Disabling passwords only for root? (https://www.linuxquestions.org/questions/linux-security-4/ssh-authentication-disabling-passwords-only-for-root-646314/)

jakykong 06-01-2008 11:47 PM

SSH Authentication -- Disabling passwords only for root?
 
Greetings!

I sincerely hope I selected the correct forum for this question (I was debating between 'server', 'networking' and here).

I have successfully enabled RSA Authentication for SSH on my server. No problems with that -- it works great, my public keys are all setup right, and so forth.

The problem is that enabling root login also enables root login via a password -- which I don't want (for obvious security reasons). At the same time, I have regular users who I DO want to be able to log in via a password (largely because I use that user on many machines, at times arbitrary machines, so RSA authentication is entirely impractical).

Is there some way to disable password logins for root, without disabling them for anyone else?

Arul 06-02-2008 12:28 AM

Set PermitRootLogin in sshd_config with the appropriate option.

Check the sshd_config man page for more details.

jakykong 06-02-2008 01:03 AM

Quote:

Originally Posted by Arul (Post 3171654)
Set PermitRootLogin in sshd_config with the appropriate option.

Check the sshd_config man page for more details.

I can't believe I missed that. Thanks!


All times are GMT -5. The time now is 06:41 AM.