Solved

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

Posted on 2014-10-08
13
317 Views
Last Modified: 2014-11-22
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
0
Comment
Question by:cgruber
  • 4
  • 4
  • 2
  • +2
13 Comments
 
LVL 8

Expert Comment

by:Pepe2323
ID: 40369729
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
 

Author Comment

by:cgruber
ID: 40369762
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
 
LVL 13

Expert Comment

by:Sandy
ID: 40370068
paste your ssh config file

TY/SA
0
 

Author Comment

by:cgruber
ID: 40370133
shh or sshd?
0
 
LVL 13

Expert Comment

by:Sandy
ID: 40370136
sshd_config
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 40370286
@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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 13

Expert Comment

by:Sandy
ID: 40370289
agree with GJ

TY/SA
0
 
LVL 27

Expert Comment

by:serialband
ID: 40372000
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
 

Accepted Solution

by:
cgruber earned 0 total points
ID: 40407442
Anyone can help at all?
0
 
LVL 13

Expert Comment

by:Sandy
ID: 40407806
What you have done seems correct.. Now please tell us what exactly the help you are looking at ?


TY/SA
0
 
LVL 27

Expert Comment

by:serialband
ID: 40411545
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
 

Author Closing Comment

by:cgruber
ID: 40459259
Deleted config file and re-created. Set Pubkeyauthentication to No and it works now.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now