Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 418
  • Last Modified:

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
0
cgruber
Asked:
cgruber
  • 4
  • 4
  • 2
  • +2
1 Solution
 
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 4
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now