authorized_keys
must be located in /userdata/system/.ssh/
(note the .
in .ssh
), owned by root:root
, mode 600
:
Also, all its parent directories must not be writable by other users, so /userdata
, /userdata/system
, and /userdata/system/.ssh
must be owned by root:root
and mode 755
:
# ls -ald /userdata /userdata/system /userdata/system/.ssh /userdata/system/.ssh/authorized_keys
drwxr-xr-x 18 root root 4096 May 26 11:09 /userdata
drwxr-xr-x 15 root root 4096 May 26 11:16 /userdata/system
drwx------ 2 root root 4096 May 26 11:16 /userdata/system/.ssh
-rw------- 1 root root 753 May 26 11:16 /userdata/system/.ssh/authorized_keys
I just got it working today, I had directories owned by user 501
.