1845960 Members
2200 Online
110250 Solutions
New Discussion

Re: ssh without password

 
Sridhar R
Regular Advisor

ssh without password

Hi,

I want to enable ssh login between 2 HP-UX 11.23 servers without a password prompt, for one particular user. Kindly provide the step-by-step commands that have to executed.

Thanks in Advance!!

Sridhar
3 REPLIES 3
likid0
Honored Contributor

Re: ssh without password

just google for ssh shared key in google, there are thousands.

here is one:

http://community.spiceworks.com/education/projects/Passwordless_SSH_Using_Shared_Keys
Windows?, no thanks
Kenan Erdey
Honored Contributor

Re: ssh without password

Hi,


search the forum "passwordless ssh".

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1223480

Kenan.
Computers have lots of memory but no imagination
saravanan08
Valued Contributor

Re: ssh without password

hi
1. create a pulic and private key pair in the client using command in the home directory of the user

client $ssh-keygen -t rsa
it will ask for passphrase
supply your own passphrase

then check with

$ll ~/.ssh/id*

copy the client public key (id_rsa.pub) to the server by ftp or rcp

as a root user create a directory in the server in the user's home directory
# mkdir ~/.ssh
#chown username ~/.ssh
#touch ~/.ssh/authorized_keys
#chown username ~/.ssh/authorized_keys
#chmod 644 authorized_keys

redirect the copied public key file to authorized_users file

cat id_rsa.pub > ~/.ssh/authorized_keys

test user authendication

client $ssh username@servername

it wil prompt for passphrase. after supplying phrase key u can directly login to the server

if u dont want to supply even passphrase then u hve to configure ssh-agent in the client