OT: My ssh authorized_keys doesn't work with nfs/nis

Yasuhiro KIMURA yasu at utahime.org
Sat Sep 14 09:53:53 UTC 2019


From: Aryeh Friedman <aryeh.friedman at gmail.com>
Subject: Re: OT: My ssh authorized_keys doesn't work with nfs/nis
Date: Sat, 14 Sep 2019 05:20:48 -0400

> Correct I am using NFS shares for the home dirs
> 
>> (1) Add new user 'localuser' to /etc/masster.passwd of 'nearby'.
>> (2) Create home directory of 'localuser' on local file system of
>>     'nearby'.
>> (3) Copy id_rsa.pub as ~localuser/.ssh/authorized_keys on 'nearby'
>> (4) Try 'ssh localuser at nearby'.
>>
>>
> Doesn't ask for password localaccount --> localacccount but localaccount
> --> NISaccount does ask for a password (I made the authorized keys
> identical for both accounts).

Then login as root on 'nearby' (or login normal user and do 'su -')
and check if ~NISaccount/.ssh/authorized_keys can be read by root. If
root can't read it, probably source of the problem is NFS
configuration.

---
Yasuhiro KIMURA


More information about the freebsd-questions mailing list