Ok, it's been a while since I set this up successfully in the past. I should've kept better notes, or something has changed since.
I'm trying to connect via SSH to a FreeBSD system (13.0-REL) from PuTTY on Windows. I've created the public and private key pair using PuTTYgen. I've added the public key to ~/.ssh/authorized_keys2 and have the private key loaded in the session config on PuTTY.
On the PuTTY end, I get:
And then in a popup window "No supported authentication methods available (server sent: publickey)"
In lieu of working SSH, my window into the server is frustratingly limited, but in running sshd with -ddd I think the relevant log entry is:
In /etc/ssh/sshd_config, I have "AuthenticationMethods" set to "publickey", "RSAAuthentication" to "yes", and "PubKeyAuthentication" to "yes".
What else am I missing?
I'm trying to connect via SSH to a FreeBSD system (13.0-REL) from PuTTY on Windows. I've created the public and private key pair using PuTTYgen. I've added the public key to ~/.ssh/authorized_keys2 and have the private key loaded in the session config on PuTTY.
On the PuTTY end, I get:
Code:
Using username "username".
Server refused our key
In lieu of working SSH, my window into the server is frustratingly limited, but in running sshd with -ddd I think the relevant log entry is:
Code:
debug3: mm_answer_keyallowed: publickey authentication test: RSA key is not allowed
In /etc/ssh/sshd_config, I have "AuthenticationMethods" set to "publickey", "RSAAuthentication" to "yes", and "PubKeyAuthentication" to "yes".
What else am I missing?