Dear Members,
I'm in a situation where I have a NanoPI R4S with Slarm64-current installed, and I want to log in with a password via SSH (given that it's a headless system).
My problem is that I get the following error when UsePAM is set to yes in the sshd_config. If I set it to no, and restart sshd, then I can log in just fine.
The error message is:
Code:
$ ssh -o UserKnownHostsFile=/dev/null -l user 192.168.10.24
The authenticity of host '192.168.A.B (192.168.A.B)' can't be established.
ECDSA key fingerprint is SHA256:XXXX.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.A.B' (ECDSA) to the list of known hosts.
Password:
client_loop: send disconnect: Broken pipe
On the server side, I can see:
Code:
debug3: mm_request_send: entering, type 26 [preauth]
debug3: mm_send_keystate: Finished sending state [preauth]
debug1: monitor_read_log: child log fd closed
debug3: ssh_sandbox_parent_finish: finished
debug1: PAM: establishing credentials
PAM: pam_setcred(): Authentication failure
debug1: do_cleanup
debug3: PAM: sshpam_thread_cleanup entering
What may the problem be?