ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Fedora 33 SSH Access Denied But Webmin Works Fine

    Scheduled Pinned Locked Moved IT Discussion
    21 Posts 5 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 1
      1337 @NashBrydges
      last edited by

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

      NashBrydgesN 1 Reply Last reply Reply Quote 0
      • NashBrydgesN
        NashBrydges @1337
        last edited by

        @Pete-S No external access so they are golden. Password has been changed to a 20 character one as well.

        JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 1
        • JaredBuschJ
          JaredBusch @NashBrydges
          last edited by

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

          1 Reply Last reply Reply Quote 2
          • scottalanmillerS
            scottalanmiller @NashBrydges
            last edited by

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

            JaredBuschJ 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @NashBrydges
              last edited by

              @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:::'? No

              root isn't impacted by sudo

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @NashBrydges
                last edited by

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

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @NashBrydges
                  last edited by

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

                  1 Reply Last reply Reply Quote 1
                  • scottalanmillerS
                    scottalanmiller @NashBrydges
                    last edited by

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

                    1 Reply Last reply Reply Quote 0
                    • JaredBuschJ
                      JaredBusch @scottalanmiller
                      last edited by

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

                      1 1 Reply Last reply Reply Quote 1
                      • 1
                        1337 @JaredBusch
                        last edited by 1337

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

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 2 / 2
                        • First post
                          Last post