• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Jul 27, 2019, 9:54 AM

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

    1 Reply Last reply Reply Quote 0
    • K
      kiokoman LAYER 8
      last edited by Jul 27, 2019, 10:04 AM

      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 Jul 27, 2019, 10:34 AM

        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

        J 1 Reply Last reply Jul 27, 2019, 1:37 PM Reply Quote 0
        • K
          kiokoman LAYER 8
          last edited by kiokoman Jul 27, 2019, 11:02 AM Jul 27, 2019, 10:57 AM

          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
          • J
            JKnott @riahc3
            last edited by Jul 27, 2019, 1:37 PM

            @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
            • S
              stephenw10 Netgate Administrator
              last edited by Jul 28, 2019, 1:21 PM

              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
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Jul 29, 2019, 2:55 PM

                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
                4 out of 7
                • First post
                  4/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received