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

    SSH access problem

    General pfSense Questions
    3
    9
    2.8k
    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
      kevindd992002
      last edited by

      I have two pfsense boxes with one user (part of the admin group) created for each. SSH access is enabled for both. When I try using putty to access each of these, I login with the username "root" and am successful using the password of the created user in the 1st pfsense box but get an "access denied" error on the 2nd box. The only password that the 2nd box accepts is the default "pfsense" password.

      Why is this?

      1 Reply Last reply Reply Quote 0
      • dotdashD
        dotdash
        last edited by

        If you are creating a new user called 'root' don't do that, use another name. If not, log in as the user name you created, not root.

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

          No, the user that I created is "kevindd992002". I logged onto the 2nd box using that name but then I don't get the usual pfsene menu wherein you press 8 to go to the shell. What I get is a shell prompt right away and does not recognize the directory "/usr/local/www". When I log on using thr root username and the password of the user, it is access denied. When I log on using the root username and "pfsense" as a password, everything works fine.

          I setup another pfsense box (3rd box) just for testing purposes and I was ablr to get into the pfsense menu by using root as the username and the user password as the password.

          Any more ideas?

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            The user password isn't root's password. root is the same as admin, change admin's password to change root's.

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

              @cmb:

              The user password isn't root's password. root is the same as admin, change admin's password to change root's.

              That makes sense, I think I got it solved now. The only problem I have is that when I log in as a user using putty, I cannot create directories/files in /usr/local/www but I can do it with the root user. I made user that the user has a "user - system - shell account" permission already.

              1 Reply Last reply Reply Quote 0
              • dotdashD
                dotdash
                last edited by

                @kevindd992002:

                The only problem I have is that when I log in as a user using putty, I cannot create directories/files in /usr/local/www but I can do it with the root user. I made user that the user has a "user - system - shell account" permission already.

                If you want the user to have access to all the system files, put them in the admin group.

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

                  The user is already a member of the admin group from the very start. The only difference that I've noticed between the default "admin" account and the created user is that the admin account had the "user - system - shell account" permission in place while the created user, by default, does not. So I just added that permission to the created user but it did not fix the problem.

                  Any other thoughts?

                  1 Reply Last reply Reply Quote 0
                  • dotdashD
                    dotdash
                    last edited by

                    @kevindd992002:

                    Any other thoughts?

                    That directory is only writable by owner (root). Either find somewhere writable and put the files there, or chmod the directory to be writable by wheel.
                    What exactly are you trying to do?

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

                      @dotdash:

                      @kevindd992002:

                      Any other thoughts?

                      That directory is only writable by owner (root). Either find somewhere writable and put the files there, or chmod the directory to be writable by wheel.
                      What exactly are you trying to do?

                      Ok, got it. So I should just use root for everything. I'm trying to server a proxy.pac file but was just wondering why the created user doesn't have permission on that folder. I already got the answer from you though, so thanks.

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