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

    Su

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 1.2k 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.
    • P Offline
      polhallen
      last edited by

      Hello all :-)

      I need to connect to ssh by user, later do "su" to become root.

      Where's su command?

      Do I need use sudo?

      thanks for help

      Pol

      1 Reply Last reply Reply Quote 0
      • M Offline
        muswellhillbilly
        last edited by

        When you ssh to the PFW, you connect to the admin menu. Press '8' to get to a shell as the admin user. Then just type 'su' at the command prompt without a password and it takes you to the root shell.

        1 Reply Last reply Reply Quote 0
        • P Offline
          polhallen
          last edited by

          I known. But I need to connect to pfsense from another place (via internet) and I have to use normal user. thanks

          Pol

          1 Reply Last reply Reply Quote 0
          • M Offline
            muswellhillbilly
            last edited by

            I'm not sure what you're asking, then. One thing I can say is that opening up SSH access to your firewall from the WAN side is a very, very (VERY) bad idea. At the very least, you should limit SSH access to just the IP you're remoting in from, but you're far better off using a VPN to connect to your internal network remotely first and then make your SSH connection to the firewall from inside your LAN.

            Regardless of where you remote in from the process is the same. The connection takes you to the admin menu and you shell out from there.

            If this doesn't answer your question, please rephrase it specifying what you are trying to do in detail.

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

              Install the sudo package and use it. Then you can grant access to users or groups from the GUI.

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