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

SSH login using default user “admin”

Scheduled Pinned Locked Moved General pfSense Questions
18 Posts 7 Posters 22.0k 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.
  • J
    jahonix
    last edited by Dec 1, 2017, 1:02 AM

    Which version do you use on what kind of platform?
    Might it be a read-only mounted file system? It should commit changes but…

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Dec 1, 2017, 1:04 AM

      Strange.

      I'm using a Putty session, with "admin" as the auto-login user name.
      But I'm NOT using the password related to the "pfSense's admin user  ;)
      I generated and use key for authentication - have to type in the passphrase of the key  :

      Using username "admin".
      Authenticating with public key "rsa-key-20150201"
      Passphrase for key "rsa-key-20150201":
      pfSense - Netgate Device ID: 20bbccdf95385caaa087
      
      *** Welcome to pfSense 2.4.2-RELEASE (amd64) on pfsense ***
      ...
      

      Works great.

      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
      • W
        wgstarks
        last edited by Dec 1, 2017, 1:13 AM Dec 1, 2017, 1:07 AM

        @jahonix:

        Which version do you use on what kind of platform?
        Might it be a read-only mounted file system? It should commit changes but…

        It’s vs 2.4.2 on a minisys n10e. The SSD is formatted ZFS but also had the same issue with UFS.

        As far as I can tell only the password is effected by rebooting and only for ssh. The same user/password is used for webgui login without any issues. Don’t see any other settings/configurations that are getting lost on reboot.

        Box: SG-4200

        1 Reply Last reply Reply Quote 0
        • G
          Gertjan
          last edited by Dec 1, 2017, 1:15 AM

          I'm with you here, and with @johnpoz : It's really time that we all (you inclusive !!) see some logs now.

          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
          • W
            wgstarks
            last edited by Dec 1, 2017, 1:26 AM

            @Gertjan:

            I'm with you here, and with @johnpoz : It's really time that we all (you inclusive !!) see some logs now.

            I'd be glad to post them, but as far as I can tell nothing is being logged on the failed attempts. The only log entries I can find are for successful logins after editing the admin user. Do I need to check something other than system logs?

            Box: SG-4200

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Dec 1, 2017, 9:00 PM

              Did you move ssh to a different port? Or maybe you have a port forward or other NAT setup which might be redirecting that port to something else?

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • W
                wgstarks
                last edited by Dec 1, 2017, 9:08 PM

                I changed ssh to port 2222 so to login I’m using ssh root@ <ip>-p 2222. I’ll get a prompt for a password. Sometimes the password works and sometimes I get “connection terminated” and nothing is logged on the firewall.</ip>

                Box: SG-4200

                1 Reply Last reply Reply Quote 0
                • H
                  hda
                  last edited by Dec 2, 2017, 12:34 AM

                  @wgstarks:

                  … Sometimes the password works and sometimes I get “connection terminated”...

                  sshd_config. -> LoginGraceTime 30s

                  1 Reply Last reply Reply Quote 0
                  • G
                    Gertjan
                    last edited by Dec 2, 2017, 8:49 AM

                    I just moved the "22" port to "2222" (why 2222  ? a port scan on your LAN will find it in less then 1 second).

                    In reverse order :

                    Dec 2 09:46:51 sshd 8263 Accepted keyboard-interactive/pam for admin from 192.168.1.6 port 50087 ssh2
                    Dec 2 09:46:48 sshd 8263 error: PAM: authentication error for admin from 192.168.1.6
                    Dec 2 09:46:45 sshd 8263 error: PAM: authentication error for admin from 192.168.1.6
                    Dec 2 09:46:22 sshd 59619 Server listening on 0.0.0.0 port 2222.
                    Dec 2 09:46:22 sshd 59619 Server listening on :: port 2222.
                    Dec 2 09:46:21 check_reload_status starting sshd
                    Dec 2 09:46:21 php-fpm 75193 /system_advanced_admin.php: secure shell configuration has changed. Restarting sshd.
                    Dec 2 09:46:21 php-fpm 75193 /system_advanced_admin.php: secure shell configuration has changed. Stopping sshd.

                    Logs work fine for me …. something's up with your system.

                    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
                    • W
                      wgstarks
                      last edited by Dec 2, 2017, 1:41 PM

                      @Gertjan:

                      something's up with your system.

                      I think you are probably correct. Not sure, but I suspect that an incorrect password wouldn’t result in a terminated connection but rather an error about invalid password and a prompt for another one. I also can’t receive Growl notifications on the same system even though pfSense shows that they are being sent successfully.

                      I’ve installed a public key on the system and we’ll see how that works. So far no problems.

                      Box: SG-4200

                      1 Reply Last reply Reply Quote 0
                      18 out of 18
                      • First post
                        18/18
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received