LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ssh key auth problem (https://www.linuxquestions.org/questions/linux-general-1/ssh-key-auth-problem-734550/)

Ammad 06-21-2009 09:02 AM

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 ?

dxqcanada 06-21-2009 09:07 AM

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).

Ammad 06-21-2009 09:17 AM

i have entered passphrase, "6 characters" (Testing Evn). when i enter passphrase, remote system allows me to login.

strange.

sundialsvcs 06-22-2009 06:19 PM

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..."

Ammad 06-23-2009 01:08 AM

so how do i solve this, to get auto login on remote system.


thanks.


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