LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-21-2009, 09:02 AM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Rep: Reputation: 31
ssh key auth problem


HI,

i have two VM running RHEL 5.3. i want to setup ssh key authentication, for this purpose i have followed http://www.petefreitag.com/item/532.cfm but the problem is when i try to access remote system it prompts me to enter Passphrase

Code:
Enter passphrase for key '/root/.ssh/id_rsa':
Code:
STEPs performed on system1 
 [root@linux .ssh]# ssh-keygen  -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Saving the key failed: /root/.ssh/id_rsa.


[root@linux .ssh]# vi id_rsa.pub

copied the content of id_rsa.pub to remote system's .ssh/authorized_keys.


Is something wrong in this ?
 
Old 06-21-2009, 09:07 AM   #2
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Saving the key should not have failed.

I am assuming that you did not use a passphrase when you created your keys ... so if you are getting prompted for a passphrase, then that means the system is using a different key (which is most likely since you got that error).
 
Old 06-21-2009, 09:17 AM   #3
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Original Poster
Rep: Reputation: 31
i have entered passphrase, "6 characters" (Testing Evn). when i enter passphrase, remote system allows me to login.

strange.
 
Old 06-22-2009, 06:19 PM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,377

Rep: Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108
Not so strange: the certificate apparently was protected by a passphrase. So, your local ssh client asked you to enter the passphrase. When you did so (correctly), it submitted the key to the host and it was accepted. "Working as designed..."
 
Old 06-23-2009, 01:08 AM   #5
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Original Poster
Rep: Reputation: 31
so how do i solve this, to get auto login on remote system.


thanks.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
open-ssh vs. commercial ssh (tru64), public-key auth not possible? cf050 Linux - Networking 8 03-28-2012 11:15 AM
cwrsync ssh key problem Zetec Linux - Software 4 09-30-2006 03:58 AM
Ssh Key Problem Eazy-Snatch Linux - Networking 2 07-12-2006 06:47 AM
Rsyncing between windows client and gentoo server, over ssh, using key for auth. Passive Linux - Networking 0 08-03-2005 11:05 AM
Failing to log into ssh via ldap auth. Pam Problem? cehlers Linux - Security 1 10-10-2004 07:55 AM


All times are GMT -5. The time now is 08:59 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