LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-11-2010, 05:18 AM   #1
sarves
LQ Newbie
 
Registered: May 2010
Posts: 5

Rep: Reputation: 0
Question 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
 
Old 05-11-2010, 06:04 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
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?
 
Old 05-11-2010, 08:31 AM   #3
sarves
LQ Newbie
 
Registered: May 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up Solved

Thanks Chaitanya!

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

Thanks
Sarves
 
Old 05-12-2010, 12:55 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
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.
 
  


Reply

Tags
ssh public key


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh -- Permission denied (publickey,password,keyboard-interactive). davidkline Linux - Networking 11 Today 02:19 PM
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-inte ract MilanK Linux - Newbie 1 03-20-2012 03:44 AM
ssh client say me Permission denied.(publickey). linderox Linux - Networking 2 02-27-2008 09:36 AM
Permission denied (publickey,password,keyboard-interactive) cccc Linux - General 3 05-31-2007 05:32 PM
Permission denied (publickey,password,keyboard-interactive). rockymaxsource Linux - Networking 3 04-27-2007 08:32 PM


All times are GMT -5. The time now is 07:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration