1753524 Members
4825 Online
108795 Solutions
New Discussion юеВ

Re: ssh

 
RAKUNTA
Frequent Advisor

ssh

Dear all,

we are using hp-ux 11i.v3,B.11.31. in rx8640.
How can i implement passwordless ssh sessions<
can any one guide us with all details(step by step)please ......
best Regards
rakunta
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: ssh

It should be pretty similar to scp and a bunch of other threads on this topic:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1448074
unixnewbie
Advisor

Re: ssh

Please try the following:
ServerA and ServerB both should run the ssh daemons.To allow ServerA to SSH to ServerB without password


Login to the source server (server A)


# ssh-keygen -t rsa

accpet all defaults sttings.

This generates two files id_rsa.pub and id_rsa

Now,id_rsa.pub needs to be appended to the authorized_keys file on ServerB


Rename this file to some other name , for identification.

#mv id_rsa.pub _rsa.pub

copy this file to serverB.


# scp _rsa.pub ServerB:~/.ssh/_rsa.pub

Login to server B

move to the .ssh folder under your home directory


Take a backup of the file authorized_keys

#cp -p authorized_keys authorized_keys.backup

# cat _rsa.pub >> authorized_keys


Now try login from server A to B

Note: If you are implementing it first time there will not be any authorized_keys file. So you can simply rename the file id_rsa.pub _rsa.pub to authorized_keys
Repeat this process starting from server B to A to allow passwordless login from server B to A
Chandrahasa s
Valued Contributor

Re: ssh

Hi,

Go through attached document.


Chandra