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

    Connect via SSH as root?

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 5 Posters 607 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.
    • R
      riahc3 Banned
      last edited by

      I need to connect to pfSense thru SSH as root. How can I do this?

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

        System / Advanced / Admin Access

        ssh.jpg

        after this you can connect via ssh using root / password of webgui

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        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
        • R
          riahc3 Banned
          last edited by

          Thats not the question.

          The user root does NOT exist in the webgui. If you connect via SSH, change to root, and do a whoami, you can see that the user is root.

          So the question is how do you connect to SSH as root, you know:

          ssh root@FQDN.OF.PFSENSE.BOX

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

            the user root does not exist on the webgui but exist on ssh so activating that let you connect via ssh as root@FQDN AND as admin@FQDN with the same password

            ssh.jpg

            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
            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
            • JKnottJ
              JKnott @riahc3
              last edited by

              @riahc3 said in Connect via SSH as root?:

              So the question is how do you connect to SSH as root, you know:

              I frequently use ssh as root. When I connect from my Linux system, I enter the command ssh root@<host name>. That's all it takes.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

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

                Yes, there should be no problem doing that. Somethings require you connect as root, scp for example.

                Steve

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  In the OS, the root and admin accounts are setup using the same credentials. So you just connect with root@hostname using the password for the admin account.

                  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 1
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.