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

    manage pfsense with SSH

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 1.1k 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.
    • K
      koko_adams
      last edited by

      Hi

      Can i use SSH in pfsense to :

      • enable/disable user

      • change password user

      I have a pfsense firewall in another site, but i lose my credentials

      Thank YOU

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        This might help:

        https://docs.netgate.com/pfsense/en/latest/usermanager/locked-out-of-the-webgui.html

        1 Reply Last reply Reply Quote 0
        • K
          koko_adams
          last edited by

          i have disable user admin

          any way to show the enabled / disabled user and to enable them ?

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            It looks like pfSense uses the FreeBSD user access control instead of something custom, so you could try:

            pw unlock admin
            

            and see if that works.

            1 Reply Last reply Reply Quote 0
            • kiokomanK
              kiokoman LAYER 8
              last edited by

              that will not reset the gui settings
              there is

              /etc/rc.initial.password
              

              The webConfigurator admin password and privileges will be reset to the default

              that correspond to option 3 of the menu

              3) Reset webConfigurator password
              

              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
              Please do not use chat/PM to ask for help
              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

              1 Reply Last reply Reply Quote 0
              • K
                koko_adams
                last edited by

                thank you for all reply
                just one last question :
                can i make user admin in pfsense via ssh ? if yes , how i can do this ?

                1 Reply Last reply Reply Quote 0
                • kiokomanK
                  kiokoman LAYER 8
                  last edited by

                  user admin in the gui is user root for ssh, it's the same account
                  if you want to add a new user with ssh access you can do it from the gui
                  System / User Manager
                  add a new user, the privilege would be -> User - System: Shell account access

                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                  Please do not use chat/PM to ask for help
                  we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                  Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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