Using Debian 8.
I need a myuser user, which should have no password, just key file based SSH login.
My /etc/passwd contains the following:
How can I set SSH private key file to a different directory?
I tried to add a specific path to /etc/ssh/sshd_config
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2 /my/specific/path/.ssh/authorized_keys
but doesn't authenticate when trying to login to SSH with myuser username.
But I get:
ssh firstname.lastname@example.org email@example.com's password:
EDIT1: The .ssh dir permission:
ls -la /my/specific/path drwx------ 2 myuser myuser 4096 Apr 23 2018 .ssh
The authorized_keys file permission:
ls -la /my/specific/path/.ssh -rw------- 1 myuser myuser 101 Jun 15 19:51 authorized_keys
But still can not login. How to fix?