Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Sep 2019 05:20:48 -0400
From:      Aryeh Friedman <aryeh.friedman@gmail.com>
To:        Yasuhiro KIMURA <yasu@utahime.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: OT: My ssh authorized_keys doesn't work with nfs/nis
Message-ID:  <CAGBxaXknOe_T-L=JTQpbp_=PZ6p31Bm5xcZkkFBkBgWC5NjRMA@mail.gmail.com>
In-Reply-To: <20190914.180149.507595364120716902.yasu@utahime.org>
References:  <20190914.165833.837204595421008532.yasu@utahime.org> <CAGBxaX=DGv%2BvoL1cWk3nUYMdpCuiP2nrOnY%2Bum6V93kD_fkUtQ@mail.gmail.com> <CAGBxaXkVQNE6deyWs9JXh9vqmKz8tLc9HfqC8ZmBLrK2jv7p3A@mail.gmail.com> <20190914.180149.507595364120716902.yasu@utahime.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 14, 2019 at 5:03 AM Yasuhiro KIMURA <yasu@utahime.org> wrote:

> 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 04:15:59 -0400
>
> >> Did you set passphrase when creating id_rsa.pub (and id_rsa)?
> > no
>
> Umm, then it seems that ~/.ssh/authorized_keys on 'nearby' is surely
> not looked up by sshd.
>
> By the way, according to mail subject 'nearby' seems to be NFS client
> too. And I guess you share home directory with NFS. If it is right,
> what happens if you use local (i.e. non-NIS and non-NFS) account? That
> is,
>

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).

-- 
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaXknOe_T-L=JTQpbp_=PZ6p31Bm5xcZkkFBkBgWC5NjRMA>