SSH - Permission denied (publickey,keyboard-interactive)
I have OpenSSH_5.5p1 on my Fedora 10.
I generated a key pairs using ssh-keygen and added the pub key to the remote machine that I wanted to connect. When I try to sshing, I am getting : Permission denied (publickey,keyboard-interactive). When I try to connect to the machine itself also getting the same error. sshd_conf : Protocol 2 HostKey /etc/ssh/ssh_host_dsa_key SyslogFacility AUTHPRIV PermitRootLogin no MaxAuthTries 60 RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile %h/.ssh2/authorized_keys2 PasswordAuthentication no PermitEmptyPasswords no ChallengeResponseAuthentication yes What could be the issue? Thanks, Sarves |
It obviously says that the keys do not match and hence the access has been denied. And because you have disabled interactive logon, you would not be able to login unless those keys match.
And are you sure you restarted the ssh service after adding the keys? |
Solved
Thanks Chaitanya!
Yep I messed with keys and I also used ssh -v <remote-host> to find the error. Thanks Sarves |
Glad. I had this issue some time back. Instead of copying the keys you could use ssh-copy command. This will make your life easier.
|
All times are GMT -5. The time now is 06:27 AM. |