cancel
Showing results for 
Search instead for 
Did you mean: 

passwordless ssh

 
rahul_rtns
Frequent Advisor

passwordless ssh

Hi,

 

I want to have a passwordless ssh from let serverA to serverB. I already tried succesfully for passwordless ssh. But this is from local user on serverA to local user on serverB. Now i want to do that from root user of serverA to that local user on serverB.

 

I have checked in root directory of serverA. .ssh file is already there and also in that .ssh directory  id_rsa and id_rsa.pub files are already present. May be someone before has created them that i am not aware of.

 

I am having concern that can i gererate again the private and public keys in root user and should append it to authorized_keys file in serverB or first i have to delete the old .ssh folder and its contents in root.   Or what is the correct procedure for that.

 

Regards,

1 REPLY
Dennis Handly
Acclaimed Contributor

Re: passwordless ssh

You should read the topics I mentioned in your other thread:

http://h30499.www3.hp.com/t5/Languages-and-Scripting/script-regarding-ssh/m-p/5402173

 

Also, a forum search for ssh may provide more helpful info.

 

>Now I want to do that from root user of serverA to that local user on serverB.

 

ssh doesn't really care who the source user is as long as the keys are there on serverB.

 

>should append it to authorized_keys file in serverB or first I have to delete the old .ssh folder and its contents in root.

 

You should just append, especially if you have already added other user's keys on serverB.