On Sat, Jun 13, 2020 at 10:18:37PM +0100, Chris Narkiewicz wrote:
> I have a user with a non-standard $HOME location
> and I added a key to authorized_keys.
> 
> When I try to login via SSH, I get a password prompt.
> 
> When looking at sshd debug logs, I see this:
> 
> debug1: Could not open authorized keys
> '/var/home/user/.ssh/authorized_keys': Permission denied
> 
> That's a but strange that ssh daemon cannot open a keys.
> Why is that? Some sort of security to prevent sshd
> touching anything outside /home?

>From code source, sshd daemon will use user's uid to open the authorized_keys
file.

I assume the file permission of '/var/home/user/.ssh/authorized_keys' doesn't
allow 'user' to open it ?

Please note it could be a problem with permission of the file, or with one
directory in the path.

Thanks.
-- 
Sebastien Marie

Reply via email to