Operating System - HP-UX
1832986 Members
2880 Online
110048 Solutions
New Discussion

unable to ssh between two servers

 

unable to ssh between two servers

hi all

i have generated a rsa public key in one server and copied to the authorized_key under the .ssh directory which is under his home directory.

can u help me what are all the remaining files to be checked to login through ssh with out password as i am unable to do it
3 REPLIES 3
sangilak
Trusted Contributor

Re: unable to ssh between two servers

Hi,


Have a look at the thread below, they discuss in detail how to setup password less ssh:
http://h30499.www3.hp.com/t5/System-Administration/Passwordless-SSH/m-p/4182256/highlight/true#M322574


Pay special attention to Robert Salter's post, as it has an attachment with detailed instructions.


Hope that helps!

sangilak

Tim Nelson
Honored Contributor

Re: unable to ssh between two servers

best place to look for an error is in /var/adm/syslog/syslog.log

it probably says you have the wrong permissions on either the file or users directory.

Alzhy
Honored Contributor

Re: unable to ssh between two servers

Illustrative How to:

If you want anil@srv1 to be able to ssh to kumar@srv2:

anil@srv1# ssh-keygen -t dsa (accept all defaults)
anil@srv1# cd ~/.ssh
anil@srv1# scp id_dsa.pub srv1:/tmp

kumar@srv2# cd ~/.ssh
(if no exist, ssh to any machine and it will create the .ssh dir in your home dir)
kumar@srv2# cat /tmp/id_dsa.pub >>authorized_keys

Done.

Now the following will be trusted and SSH (ssh. scp, etc) will now be passwordless:

anil@srv1# ssh kumar@srv2

Adjust the process appropo to the situation at hand.

Hope this is clears enough...
And give us some Luv if this fixes your issue.

Hakuna Matata.