OT: My ssh authorized_keys doesn't work with nfs/nis
mafsys1234 at gmail.com
Sat Sep 14 13:27:25 UTC 2019
Well it's great to see that extra debugging information totally missed it.
On 14/09/2019 11:24 pm, Aryeh Friedman wrote:
> Problem solved it turned out to be really simple the home dir was 777 when
> the widest ssh wants it is 755 (all the permissions I where look at before
> where the .ssh dir not the home dir)
> On Sat, Sep 14, 2019 at 9:22 AM MJ <mafsys1234 at gmail.com> wrote:
>> On 14/09/2019 5:39 pm, Aryeh Friedman wrote:
>>> My ~/.ssh/authorized_keys files works fine on a machine that is not in my
>>> NIS domain but when I copy my id_rsa.pub (which is what I did to create
>>> non-NIS authorized_keys) to my NIS account and give it the same
>>> as the working machine it insists on asking for a password.
>>> ssh faraway (non-NIS machine)
>>> does not ask for a password
>>> ssh nearby (NIS machine) does
>>> Both have identical authorized keys and both (and their parent dirs) are
>>> set to 644. Both machines are FreeBSD 11 and the machine doing the ssh
>>> call is FreeBSD 12
>> Well in desperation I guess you could:
>> Nuke the dud server's authorized_keys
>> Use "ssh-copy-id -i /your/path/to/key aryeh at nearby" to copy your pub key
>> to the dud server.
>> Test with "ssh -i /your/path/to/key -vv aryeh at nearby"
More information about the freebsd-questions