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

    Allowing Root Password Login via SSH to Dragonfly BSD

    IT Discussion
    unix bsd ssh dragonfly bsd
    5
    22
    2230
    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.
    • scottalanmiller
      scottalanmiller last edited by

      By default, Dragonfly disables both root and password-based logins from SSH. This can be a big pain if you are just using the system casually or temporarily. To fix this you need to first edit the configuration file for SSHD:

      vi /etc/ssh/sshd_config
      

      Then to allow root to log in via SSH make PermitRootLogin be "yes":

      PermitRootLogin yes
      

      And to allow root or any user to use passwords for SSH login change PasswordAuthentication to "yes".

      PasswordAuthentication yes
      

      You'll need to restart SSHD for this to take effect:

      /etc/rc.d/sshd restart
      
      travisdh1 thwr 2 Replies Last reply Reply Quote 0
      • travisdh1
        travisdh1 @scottalanmiller last edited by

        @scottalanmiller Does Dragonfly not create a standard user with sudo or Sunday access by default?

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

          @travisdh1 said in Allowing Root Password Login via SSH to Dragonfly BSD:

          @scottalanmiller Does Dragonfly not create a standard user with sudo or Sunday access by default?

          Nope, most BSD do not.

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

            @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

            @travisdh1 said in Allowing Root Password Login via SSH to Dragonfly BSD:

            @scottalanmiller Does Dragonfly not create a standard user with sudo or Sunday access by default?

            Nope, most BSD do not.

            Ah, it's been a long time since I actively used any flavor of BSD.

            1 Reply Last reply Reply Quote 0
            • Lakshmana
              Lakshmana last edited by

              What is Drangonfly ?

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

                @lakshmana said in Allowing Root Password Login via SSH to Dragonfly BSD:

                What is Drangonfly ?

                One of the five BSDs. FreeBSD, NetBSD, OpenBSD, Mac OSX, and Dragonfly BSD.

                1 Reply Last reply Reply Quote 0
                • scottalanmiller
                  scottalanmiller last edited by

                  All other surviving BSD products are just rebranding or derivatives of one of these: TrueOS and FreeNAS are both derivates of FreeBSD. pfSense from OpenBSD I believe. GhostBSD is from one of them.

                  black3dynamite 1 Reply Last reply Reply Quote 0
                  • scottalanmiller
                    scottalanmiller last edited by

                    Mac OSX and Dragonfly both came from the FreeBSD ecosystem. But they each use a kernel that is not derived from FreeBSD's current kernel. In many ways, FreeBSD split from DragonFly So in a way, Mac and FreeBSD sort of came from Dragonfly because dFly is the "original" FreeBSD before FreeBSD changed its kernel.

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

                      @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                      All other surviving BSD products are just rebranding or derivatives of one of these: TrueOS and FreeNAS are both derivates of FreeBSD. pfSense from OpenBSD I believe. GhostBSD is from one of them.

                      pfSense is from FreeBSD.

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

                        @black3dynamite said in Allowing Root Password Login via SSH to Dragonfly BSD:

                        @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                        All other surviving BSD products are just rebranding or derivatives of one of these: TrueOS and FreeNAS are both derivates of FreeBSD. pfSense from OpenBSD I believe. GhostBSD is from one of them.

                        pfSense is from FreeBSD.

                        Oh yeah. Not many things left derived from the non-FreeBSD BSDs any longer. The list is really light.

                        1 Reply Last reply Reply Quote 0
                        • scottalanmiller
                          scottalanmiller last edited by

                          That's one of the nice things about the BSD ecosystem, people fork it way less often.

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

                            @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                            That's one of the nice things about the BSD ecosystem, people fork it way less often.

                            Speaking BSD ecosystem, how is the development of BSD hypervisor, bhyve?

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

                              @black3dynamite said in Allowing Root Password Login via SSH to Dragonfly BSD:

                              @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                              That's one of the nice things about the BSD ecosystem, people fork it way less often.

                              Speaking BSD ecosystem, how is the development of BSD hypervisor, bhyve?

                              It's going, but I'm not following it closely. It's not very interesting at this point.

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

                                @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                By default, Dragonfly disables both root and password-based logins from SSH. This can be a big pain if you are just using the system casually or temporarily. To fix this you need to first edit the configuration file for SSHD:

                                vi /etc/ssh/sshd_config
                                

                                Then to allow root to log in via SSH make PermitRootLogin be "yes":

                                PermitRootLogin yes
                                

                                And to allow root or any user to use passwords for SSH login change PasswordAuthentication to "yes".

                                PasswordAuthentication yes
                                

                                You'll need to restart SSHD for this to take effect:

                                /etc/rc.d/sshd restart
                                

                                A whole bunch of Linux distros do the same. You should choose a more general name for the thread - like "Allowing root password login via SSH".

                                Anyway, it's generally a better idea to use key based logins.

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

                                  @thwr said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                  @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                  By default, Dragonfly disables both root and password-based logins from SSH. This can be a big pain if you are just using the system casually or temporarily. To fix this you need to first edit the configuration file for SSHD:

                                  vi /etc/ssh/sshd_config
                                  

                                  Then to allow root to log in via SSH make PermitRootLogin be "yes":

                                  PermitRootLogin yes
                                  

                                  And to allow root or any user to use passwords for SSH login change PasswordAuthentication to "yes".

                                  PasswordAuthentication yes
                                  

                                  You'll need to restart SSHD for this to take effect:

                                  /etc/rc.d/sshd restart
                                  

                                  A whole bunch of Linux distros do the same. You should choose a more general name for the thread - like "Allowing root password login via SSH".

                                  Anyway, it's generally a better idea to use key based logins.

                                  This is the only OS I know that does this by default. People looking for Dragonfly issues will run into it.

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

                                    @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                    @thwr said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                    @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                    By default, Dragonfly disables both root and password-based logins from SSH. This can be a big pain if you are just using the system casually or temporarily. To fix this you need to first edit the configuration file for SSHD:

                                    vi /etc/ssh/sshd_config
                                    

                                    Then to allow root to log in via SSH make PermitRootLogin be "yes":

                                    PermitRootLogin yes
                                    

                                    And to allow root or any user to use passwords for SSH login change PasswordAuthentication to "yes".

                                    PasswordAuthentication yes
                                    

                                    You'll need to restart SSHD for this to take effect:

                                    /etc/rc.d/sshd restart
                                    

                                    A whole bunch of Linux distros do the same. You should choose a more general name for the thread - like "Allowing root password login via SSH".

                                    Anyway, it's generally a better idea to use key based logins.

                                    This is the only OS I know that does this by default. People looking for Dragonfly issues will run into it.

                                    Debian disallows root login not sure about passwords.

                                    scottalanmiller thwr 2 Replies Last reply Reply Quote 0
                                    • scottalanmiller
                                      scottalanmiller @black3dynamite last edited by

                                      @black3dynamite said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                      @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                      @thwr said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                      @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                      By default, Dragonfly disables both root and password-based logins from SSH. This can be a big pain if you are just using the system casually or temporarily. To fix this you need to first edit the configuration file for SSHD:

                                      vi /etc/ssh/sshd_config
                                      

                                      Then to allow root to log in via SSH make PermitRootLogin be "yes":

                                      PermitRootLogin yes
                                      

                                      And to allow root or any user to use passwords for SSH login change PasswordAuthentication to "yes".

                                      PasswordAuthentication yes
                                      

                                      You'll need to restart SSHD for this to take effect:

                                      /etc/rc.d/sshd restart
                                      

                                      A whole bunch of Linux distros do the same. You should choose a more general name for the thread - like "Allowing root password login via SSH".

                                      Anyway, it's generally a better idea to use key based logins.

                                      This is the only OS I know that does this by default. People looking for Dragonfly issues will run into it.

                                      Debian disallows root login not sure about passwords.

                                      Totally different as it...

                                      • Allows passwords
                                      • Creates the user
                                      • Sets the user to be sudo

                                      All of that is not used in Dragonfly.

                                      1 Reply Last reply Reply Quote 0
                                      • thwr
                                        thwr @black3dynamite last edited by

                                        @black3dynamite said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                        @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                        @thwr said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                        @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                        By default, Dragonfly disables both root and password-based logins from SSH. This can be a big pain if you are just using the system casually or temporarily. To fix this you need to first edit the configuration file for SSHD:

                                        vi /etc/ssh/sshd_config
                                        

                                        Then to allow root to log in via SSH make PermitRootLogin be "yes":

                                        PermitRootLogin yes
                                        

                                        And to allow root or any user to use passwords for SSH login change PasswordAuthentication to "yes".

                                        PasswordAuthentication yes
                                        

                                        You'll need to restart SSHD for this to take effect:

                                        /etc/rc.d/sshd restart
                                        

                                        A whole bunch of Linux distros do the same. You should choose a more general name for the thread - like "Allowing root password login via SSH".

                                        Anyway, it's generally a better idea to use key based logins.

                                        This is the only OS I know that does this by default. People looking for Dragonfly issues will run into it.

                                        Debian disallows root login not sure about passwords.

                                        At least Ubuntu is

                                        PermitRootLogin without-password
                                        

                                        by default

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

                                          @thwr said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                          @black3dynamite said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                          @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                          @thwr said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                          @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD:

                                          By default, Dragonfly disables both root and password-based logins from SSH. This can be a big pain if you are just using the system casually or temporarily. To fix this you need to first edit the configuration file for SSHD:

                                          vi /etc/ssh/sshd_config
                                          

                                          Then to allow root to log in via SSH make PermitRootLogin be "yes":

                                          PermitRootLogin yes
                                          

                                          And to allow root or any user to use passwords for SSH login change PasswordAuthentication to "yes".

                                          PasswordAuthentication yes
                                          

                                          You'll need to restart SSHD for this to take effect:

                                          /etc/rc.d/sshd restart
                                          

                                          A whole bunch of Linux distros do the same. You should choose a more general name for the thread - like "Allowing root password login via SSH".

                                          Anyway, it's generally a better idea to use key based logins.

                                          This is the only OS I know that does this by default. People looking for Dragonfly issues will run into it.

                                          Debian disallows root login not sure about passwords.

                                          At least Ubuntu is

                                          PermitRootLogin without-password
                                          

                                          by default

                                          Right, they allow a lot. 🙂

                                          1 Reply Last reply Reply Quote 0
                                          • scottalanmiller
                                            scottalanmiller last edited by

                                            Dragonfly is tough by default because unless you use something like Salt, you can't connect to it to get keys to it in the first place. You can curl keys to it, of course. But you need totally different processes than you would typically use with any other OS to get it set up.

                                            black3dynamite 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post