cancel
Showing results for 
Search instead for 
Did you mean: 
KerryN
Mission Specialist
Mission Specialist
  • 571 Views

RH124-93 ch10 OpenSSH server config and review

Jump to solution

Hi

When I follow the steps in the guided exercise I am fine until the one where I set

PasswordAuthentication no

and reload it. When I then try for part 9.2

ssh operator3@servera 

I do not get permission denied. And the same on the review for part 7.2 when I try

ssh production2@serverb

I do not get a permission denied.

I have checked the files and tried reloading and restarting sshd. But it still shows the password prompt. Can you please advise on whether there is an error in the instructions or something I can do to see why sshd is not picking up that setting?

systemctl status sshd.service shows that it was reloaded.

1 Solution

Accepted Solutions
  • 539 Views

The /etc/sshd_config.d/50-cloud-init.conf file also has "PasswordAuthentication yes".

 

You need to remove it from there as well.  Just got hit with that, use this to verify the running config of sshd:

sshd -T | grep Password

 

View solution in original post

2 Replies
  • 540 Views

The /etc/sshd_config.d/50-cloud-init.conf file also has "PasswordAuthentication yes".

 

You need to remove it from there as well.  Just got hit with that, use this to verify the running config of sshd:

sshd -T | grep Password

 

WilliamK2K23
Mission Specialist
Mission Specialist
  • 340 Views

The worst part about this is nowhere in the course material does it mention this file, yet they expect you to know it to pass the exam...

0 Kudos
Join the discussion
You must log in to join this conversation.