When I try to ssh user@B from A it fails with the message Permission denied (Password) after looking at the output of ssh -v user@B I thought that it might still try to use the PublicKeyAuth and found this other question discussing how to force the client to use PasswordAuth.
But the suggested command doesn't work either, so it seems to be another issue.
I also deleted the entry for B from my known_hosts file on A in case this comes with any default values attached, but ssh still failed.
When I try to ssh from my notebook with the same settings on B it asks me for a password instead and logs me in after I supply it.
It is possible to just add the key of A manually on B, but I would like to know what I misconfigured in order to avoid it the next time!
debug1: Connecting to 192.168.x.x [192.168.x.x] port 22.
debug3: hostkeys_foreach: reading file "/home/user/.ssh/known_hosts"
debug1: Host '192.168.x.x' is known and matches the ECDSA host key.
I had PasswordAuthentication no added to my /etc/ssh/ssh_config on A!
After commenting out the line it worked.
Not the answer you're looking for? Browse other questions tagged ssh authentication sshd or ask your own question.