Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Sep 2019 18:01:49 +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.180149.507595364120716902.yasu@utahime.org>
In-Reply-To: <CAGBxaX=DGv%2BvoL1cWk3nUYMdpCuiP2nrOnY%2Bum6V93kD_fkUtQ@mail.gmail.com> <CAGBxaXkVQNE6deyWs9JXh9vqmKz8tLc9HfqC8ZmBLrK2jv7p3A@mail.gmail.com>
References:  <CAGBxaXkVQNE6deyWs9JXh9vqmKz8tLc9HfqC8ZmBLrK2jv7p3A@mail.gmail.com> <20190914.165833.837204595421008532.yasu@utahime.org> <CAGBxaX=DGv%2BvoL1cWk3nUYMdpCuiP2nrOnY%2Bum6V93kD_fkUtQ@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 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,

(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'.

---
Yasuhiro KIMURA



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