Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Sep 2019 18:53:19 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: OT: My ssh authorized_keys doesn't work with nfs/nis
Message-ID:  <20190914.185319.486688500292777587.yasu@utahime.org>
In-Reply-To: <CAGBxaXknOe_T-L=JTQpbp_=PZ6p31Bm5xcZkkFBkBgWC5NjRMA@mail.gmail.com>
References:  <CAGBxaXkVQNE6deyWs9JXh9vqmKz8tLc9HfqC8ZmBLrK2jv7p3A@mail.gmail.com> <20190914.180149.507595364120716902.yasu@utahime.org> <CAGBxaXknOe_T-L=JTQpbp_=PZ6p31Bm5xcZkkFBkBgWC5NjRMA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Aryeh Friedman <aryeh.friedman@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190914.185319.486688500292777587.yasu>