Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sun solaris Ssh problem

Helios-GunesEROLJan 25 2010 — edited Jan 27 2010
Hi frits;

I have one problem which i cant handle, need your help or who has experience on it.

I have 2 sun 10 server. I try to make ssh between them wihtout password request. I am following those steps:

1. On server A:
As root user:

mkdir /.ssh
chmod 755 ~/.ssh
/usr/bin/ssh-keygen -t rsa

Generating public/private rsa key pair.
Enter file in which to save the key (//.ssh/id_rsa): /.ssh/id_rsa << i give path as /.ssh coz i create it but it seems to goes and look under //.ssh and there is path like that which i didnt create
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /.ssh/id_rsa.
Your public key has been saved in /.ssh/id_rsa.pub.
The key fingerprint is:
ec:2b:63:d0:90:7f:61:b1:43:f4:82:73:34:d8:00:69 root@A

and

/usr/bin/ssh-keygen -t dsa

Generating public/private rsa key pair.
Enter file in which to save the key (//.ssh/id_rsa): /.ssh/id_rsa << same as upper
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /.ssh/id_rsa.
Your public key has been saved in /.ssh/id_rsa.pub.
The key fingerprint is:
ec:2b:63:d0:90:7f:61:b1:43:f4:82:73:34:d8:00:69 root@A


Then i make same process on server B

2.On server A:
touch /.ssh/authorized_keys

Then run below on server A:

ssh A cat /.ssh/id_rsa.pub >> authorized_keys
ssh A cat /.ssh/id_dsa.pub >> authorized_keys
ssh B cat /.ssh/id_rsa.pub >> authorized_keys << for this it returns
ssh B cat /.ssh/id_dsa.pub >> authorized_keys << for this it returns
Password:
Password:
Password:
Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive).

3.I copy authorized_keys from server A to server B under /.ssh

4. On server A i run

ssh B date
Password:
Password:
Password:
Received disconnect from 10.x.x.x: 2: Too many authentication failures for root

Where i make mistake?

Thanks for help

Regard
Helios
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2010
Added on Jan 25 2010
9 comments
9,575 views