How to: Disable SSH public key authentication on RedHat Linux server

I have a RedHat server and would like to remove SSH public key authentication on it, so that i can SSH into it without needing a key.

What I have already tried is this:
Added PubkeyAuthentication No into /etc/ssh/sshd_config config file. Then ran the command sudo /etc/init.d/sshd reload
cgruberAsked:
Who is Participating?
 
cgruberAuthor Commented:
Anyone can help at all?
0
 
Pepe2323Commented:
Hi

that option that you set on ur sshd_config will force you  to authenticate only by password, this is what you want ??

Regards.
0
 
cgruberAuthor Commented:
Well at the moment when I try to connect to the server via SSH using putty.exe, as soon as I type in the username (root) a popup appears saying.

"Disconnected: No supported authentication methods available (server sent: gssapi-with-mic)"
0
How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

 
SandyCommented:
paste your ssh config file

TY/SA
0
 
cgruberAuthor Commented:
shh or sshd?
0
 
SandyCommented:
sshd_config
0
 
Gerwin Jansen, EE MVETopic Advisor Commented:
@cgruber - Always keep one session open to a server that you're changing the ssh config for. That way you can test the new configuration using a second session and rollback if the change isn't working.

Add this to your ssh config file:

PasswordAuthentication yes
0
 
SandyCommented:
agree with GJ

TY/SA
0
 
serialbandCommented:
Why don't you just use a key?  It's not that difficult to create and use.  If you're using putty, you can run pagent.exe and load your key until the next reboot.
0
 
SandyCommented:
What you have done seems correct.. Now please tell us what exactly the help you are looking at ?


TY/SA
0
 
serialbandCommented:
What other entries are in your sshd_config?  The default settings allow for both password and passphrase access.  This suggests that you have an entry that disables access.
0
 
cgruberAuthor Commented:
Deleted config file and re-created. Set Pubkeyauthentication to No and it works now.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.