LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH - Permission denied (publickey,keyboard-interactive) (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-permission-denied-publickey-keyboard-interactive-807132/)

sarves 05-11-2010 05:18 AM

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

linuxlover.chaitanya 05-11-2010 06:04 AM

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?

sarves 05-11-2010 08:31 AM

Solved
 
Thanks Chaitanya!

Yep I messed with keys and I also used ssh -v <remote-host> to find the error.

Thanks
Sarves

linuxlover.chaitanya 05-12-2010 12:55 AM

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.