OT: My ssh authorized_keys doesn't work with nfs/nis
matthew at FreeBSD.org
Sat Sep 14 15:21:53 UTC 2019
On 14/09/2019 13:36, Aryeh Friedman wrote:
> On Sat, Sep 14, 2019 at 8:21 AM MJ <mjose00 at optusnet.com.au> 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
>> Try ssh -vvv. See if that informs you more.
> One the first things I tried (I spent hours on the before posting):
It is frequently more enlightening to turn on debugging on the server
side. You can often spin up sshd on a high-numbered port for testing:
/usr/bin/sshd -d -d -d -p 2222
This will not daemonize and will only handle one connection attempt.
Run that in one window, and then attempt to ssh into the host from another:
ssh -p hostname
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 963 bytes
Desc: OpenPGP digital signature
More information about the freebsd-questions