Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SSH admin password should be the same as web admin right?

    Scheduled Pinned Locked Moved General pfSense Questions
    12 Posts 6 Posters 1.6k 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.
    • Y
      yannb
      last edited by

      Just want to double check… when you want to SSH like ssh admin@192.168.1.1 the password should be the same as the web admin login right?

      When it asks me for the password and I paste it in, I just get a "connection closed" message.

      It's not a huge issue 'cause I just added my SSH key via the web admin instead but I'm just curious what could be the problem… 🤔

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        @yannb said in SSH admin password should be the same as web admin right?:

        I paste it in, I just get a "connection closed" message.

        paste somewhere else, in the middle of a set of "xxxxxxxxxxxxxx" and check if there aren't any surrounding spaces or other white chars.

        pasting just works fine - just tried it. Works.

        Btw : past your cert password, never your admin pfSense password, that method of login should b disabled right after initial GUI setup.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        Y 1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan
          last edited by Gertjan

          @yannb said in SSH admin password should be the same as web admin right?:

          I paste it in, I just get a "connection closed" message.

          paste somewhere else, in the middle of a set of "xxxxxxxxxxxxxx" and check if there aren't any surrounding spaces or other white chars.

          pasting just works fine - just tried it. Works.

          Btw : past your cert password, never your admin pfSense password, that method of login should b disabled right after initial GUI setup.

          edit : wtf : echo mode is on ?

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • Y
            yannb @Gertjan
            last edited by

            @Gertjan cert password? The whole point of a SSH cert is not to use a password… 🤔 Once you have a cert added it doesn't ask for a password. I'm probably misunderstanding what you mean.

            that method of login should b disabled right after initial GUI setup

            I think I read in the docs that you can only log in via password from the LAN… This is for my home setup so it should be safe enough in theory no?

            Thanks!

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan @yannb
              last edited by Gertjan

              @yannb said in SSH admin password should be the same as web admin right?:

              you have a cert added it doesn't ask for a password

              It's a choice.
              Cert can be baked without a password.
              Normally, I add one in. (dono why any more, it's just a reflex)

              @yannb said in SSH admin password should be the same as web admin right?:

              log in via password from the LAN

              By adding a "SSH in" firewall rule on any interface, you could login from any interface.
              But for WAN this would be considered as a security risk.
              Other interface : the choice is up to you.
              On LAN : disable the default anti-lockout rule, make a new one that specifies your (source) IP adresses and only your device can login.
              Etc etc.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              noplanN AKEGECA 2 Replies Last reply Reply Quote 0
              • noplanN
                noplan @Gertjan
                last edited by

                @Gertjan
                phuuu glad i'm not alone with that reflex ;)

                1 Reply Last reply Reply Quote 1
                • N
                  nbctcp
                  last edited by

                  I don't have problem with pfsense 2.4.5
                  my ssh admin password is the same as gui

                  ssh admin@10.0.1.81

                  Password for admin@pfSense.ngtrain.com:
                  pfSense - Netgate Device ID: 3433882c484aeebf8e40

                  *** Welcome to pfSense 2.4.5-RELEASE-p1 (amd64) on pfSense ***

                  WAN (wan) -> vtnet0 -> v4: 10.0.1.81/24
                  LAN (lan) -> vtnet1 -> v4: 192.168.1.1/24

                  1. Logout (SSH only) 9) pfTop
                  2. Assign Interfaces 10) Filter Logs
                  3. Set interface(s) IP address 11) Restart webConfigurator
                  4. Reset webConfigurator password 12) PHP shell + pfSense tools
                  5. Reset to factory defaults 13) Update from console
                  6. Reboot system 14) Disable Secure Shell (sshd)
                  7. Halt system 15) Restore recent configuration
                  8. Ping host 16) Restart PHP-FPM
                  9. Shell

                  Enter an option:

                  1 Reply Last reply Reply Quote 0
                  • AKEGECA
                    AKEGEC @Gertjan
                    last edited by

                    Hi all, the password is the same.

                    @Gertjan said in SSH admin password should be the same as web admin right?:

                    @yannb said in SSH admin password should be the same as web admin right?:

                    you have a cert added it doesn't ask for a password

                    It's a choice.
                    Cert can be baked without a password.
                    Normally, I add one in. (dono why any more, it's just a reflex)

                    @yannb said in SSH admin password should be the same as web admin right?:

                    log in via password from the LAN

                    By adding a "SSH in" firewall rule on any interface, you could login from any interface.
                    But for WAN this would be considered as a security risk.
                    Other interface : the choice is up to you.
                    On LAN : disable the default anti-lockout rule, make a new one that specifies your (source) IP adresses and only your device can login.
                    Etc etc.

                    1 Reply Last reply Reply Quote 0
                    • N
                      nbctcp
                      last edited by

                      Could pfsense using port knocking like linux did?
                      I mean telnet other port 3x then it will open port 22

                      AKEGECA GertjanG 2 Replies Last reply Reply Quote 0
                      • AKEGECA
                        AKEGEC @nbctcp
                        last edited by

                        @nbctcp port 8*** maybe?

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          No, there is no port knocking in pfSense. Currently at least.

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • GertjanG
                            Gertjan @nbctcp
                            last edited by

                            @nbctcp said in SSH admin password should be the same as web admin right?:

                            Could pfsense using port knocking like linux did?
                            I mean telnet other port 3x then it will open port 22

                            Way back - like last century, I used such a method to gain access to private resources, while published on public networks.
                            It worked well.

                            These days we have (Open)VPN ;)

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.