Fedora 33 SSH Access Denied But Webmin Works Fine
-
@NashBrydges Yep, changed it to yes and now I can access via SSH!!! Thank you for the help!
-
@NashBrydges said in Fedora 33 SSH Access Denied But Webmin Works Fine:
@NashBrydges Yep, changed it to yes and now I can access via SSH!!! Thank you for the help!
Good man! You got the job done!
If the ssh server is accessible from the internet make sure the root password is long enough and random. At least 16 characters preferably.
-
@Pete-S No external access so they are golden. Password has been changed to a 20 character one as well.
-
@NashBrydges said in Fedora 33 SSH Access Denied But Webmin Works Fine:
@Pete-S No external access so they are golden. Password has been changed to a 20 character one as well.
Make a new user for this and disable root in
ssh
again anyway. -
@NashBrydges said in Fedora 33 SSH Access Denied But Webmin Works Fine:
The previous IT guy set it up on Fedora and added Webmin. I was told that there was no new password selected for Webmin and that it would login as root so he gave me the access password and in fact I can login to Webmin using root + password however, when I try to login through SSH using the same credentials, I get an Access Denied error.
Root is disabled by default in SSH configs most of the time.
-
@NashBrydges said in Fedora 33 SSH Access Denied But Webmin Works Fine:
I ran sudo pwck -r /etc/shadow and I get this output related to root user.
sudo pwck -r /etc/shadow
invalid password file entry
delete line 'root:$6$wMHG.3SSWjCcHHKO$9UmPtJcSyKaA/EKLWX6vhx02eaJH7yfdsDA9PRCadROMMb6Sgjggdq7V0/gNXB3q19LZK.sYshPiEyv3XYv8D.::0:99999:7:::'? Noroot isn't impacted by sudo
-
@NashBrydges said in Fedora 33 SSH Access Denied But Webmin Works Fine:
@Dashrender I thought that too but when I enumerate users...
cat /etc/passwd
I get this for root...
root:x:0:0:root:/root:/bin/bash
Unless I am reading this wrong, it doesn't look like that was the case. There are also no other users listed in the output besides the apache, mysql, systemd...etc.
It's the SSH config, not the password that is the issue. You know the /etc/passwd file is working great since WebMin is using it and verifying that for you. So you know the issue is limited to SSH.
-
@NashBrydges said in Fedora 33 SSH Access Denied But Webmin Works Fine:
@NashBrydges Yep, changed it to yes and now I can access via SSH!!! Thank you for the help!
This is expected behaviour. The former IT just didn't change it. They might have installed WebMin because they didn't know how to do this. WebMin is a pretty weird thing for an IT shop that knows Linux to install. So my guess is that they were so lost that they attempted a workaround.
-
@NashBrydges said in Fedora 33 SSH Access Denied But Webmin Works Fine:
@Pete-S No external access so they are golden. Password has been changed to a 20 character one as well.
Switch to a key
-
@scottalanmiller said in Fedora 33 SSH Access Denied But Webmin Works Fine:
Root is disabled by default in SSH configs most of the time.
Not until the last couple years. Sure we always disabled it, but it was not default that way until recently.
-
@JaredBusch said in Fedora 33 SSH Access Denied But Webmin Works Fine:
@scottalanmiller said in Fedora 33 SSH Access Denied But Webmin Works Fine:
Root is disabled by default in SSH configs most of the time.
Not until the last couple years. Sure we always disabled it, but it was not default that way until recently.
Ubuntu disabled it by default in 14.04 (2014) and Debian in version 8 (2015).
This probably coincide when openssh developers decided that disabled should be the default in the source code.
It's up to the distro to set defaults for installed packages so RedHat based distros like Fedora might have been much later.