I'm trying to make SSH available to non-root with Pubkey auth.
Pubkey works fine as root. I made a homedir for the user, set the login shell in /etc/passwd, and su'd into the user's directory, which works fine. Then I made a .ssh dir and the authorized_keys file (actually, I went back to root, copied the root's authorized_keys file over and chown/chmodded it to have 644 and username:users).
Code: Select all
>pwd /var/services/homes/hg/.ssh >ls -lap drwx------ 2 hg users 4096 Apr 2 00:03 ./ drwxrwxrwx 3 hg users 4096 Apr 2 00:02 ../ -rw-r--r-- 1 hg users 1716 Apr 2 00:03 authorized_keys -rwxr-xr-x 1 hg users 40 Apr 2 00:02 environment
However, when I try to log into SSH, I get "Server refused our key." Why could that be?