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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
SandyCommented:
paste your ssh config file

TY/SA
0
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

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
cgruberAuthor Commented:
Anyone can help at all?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.