LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   disable root login with ssh (https://www.linuxquestions.org/questions/slackware-14/disable-root-login-with-ssh-263344/)

linuxtesting2 12-06-2004 03:52 PM

disable root login with ssh
 
how can i disable root to login with ssh, i cant find anything in /etc/ssh/sshd_config.

-ole

michaelk 12-06-2004 04:06 PM

Add:
PermitRootLogin no

You can also specify users with
AllowUsers user1 user2

edafe 02-16-2005 11:31 AM

You might also be interested to have a look at:

http://www.edafe.org/slackware/index...authentication

Regards,
Edafe

Phathead 02-16-2005 12:33 PM

Absolutely check out that link. Always use public key authentication if you have an SSH server on the Internet. It's much more secure.

It can also be convienent. I keep a copy of PuTTY along with all my keys on an encrypted portion of my USB drive. The keys are also protected by a passphrase, the extra encryption is just for my peace of mind. I can SSH into my computers from anywhere on the Internet.

If you do use public key authentication, it's critical that you disable password authentication in your /etc/ssh/sshd_config to have the line:
Code:

PasswordAuthentication no
Just don't do that until after you have made sure your keys work.


All times are GMT -5. The time now is 11:40 AM.