Skip to main content

How do I remove remote root logins on Linux Fedora core 2

More
19 years 9 months ago #7364 by jacko0
Thanks guys, Its working very well now! :D

I even have got the ssh keys working.

Only problem now is that the ssh logon will still ask for a password if a key is not present when logging on.

I wanted it to refuse all connection's without the correct ssh key.
(No passwords only keys)
More
19 years 9 months ago #7377 by sahirh
Hmm there is some authtype setting in the sshd config file.. err I dont remember right now, but its something about what authentication mechanisms are allowed....


a quick search through the man page or google will tell you what it is.


Public key / private key = good.


Cheers,

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
More
19 years 9 months ago #7381 by jacko0
Hey you guys are THE BEST!!

I found it in the "sshd_config" file right their like u said.
I changed it to the following and now, the user MUST use a key or the ssh terminal exits!! :D

WHoooo Hoooo :o (I am one happy man!)

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
PermitEmptyPasswords no
Time to create page: 0.129 seconds