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

SSH access problem

Scheduled Pinned Locked Moved General pfSense Questions
9 Posts 3 Posters 2.8k 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
    kevindd992002
    last edited by Nov 25, 2015, 9:11 PM

    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
    • D
      dotdash
      last edited by Nov 25, 2015, 11:09 PM

      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 Nov 26, 2015, 3:23 AM

        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 Nov 26, 2015, 4:46 AM

          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 Nov 26, 2015, 5:40 AM Nov 26, 2015, 5:29 AM

            @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
            • D
              dotdash
              last edited by Nov 30, 2015, 4:09 PM

              @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 Nov 30, 2015, 4:16 PM

                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
                • D
                  dotdash
                  last edited by Nov 30, 2015, 5:05 PM

                  @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 Nov 30, 2015, 5:10 PM

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