![Mission Specialist Mission Specialist](/html/rank_icons/RH_SERV_005534_01_MECH_Rank_Specialist_16x16@2x.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 791 Views
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
I do not get permission denied. And the same on the review for part 7.2 when I try
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.
Accepted Solutions
![Cadet Cadet](/html/@4FA5936C845A59DAAAABD9F7250A363E/rank_icons/RH_SERV_005534_01_MECH_Rank_Cadet_16x16@2x.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 759 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
![Cadet Cadet](/html/@4FA5936C845A59DAAAABD9F7250A363E/rank_icons/RH_SERV_005534_01_MECH_Rank_Cadet_16x16@2x.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 760 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
![Mission Specialist Mission Specialist](/html/rank_icons/RH_SERV_005534_01_MECH_Rank_Specialist_16x16@2x.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 560 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...