HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

SSH/SCP without password

 
Md. Minhaz Khan
Super Advisor

SSH/SCP without password

Dear ALL,

Machine1(user1) wants to login Machine2(user2)without password. So i have followed below steps. But when i try with
"ssh user2@Machine2" it asks password to me.
I have also make sure "authorized_keys" has permission 644 in Machine2. So please help me with this issue


In Machine2(As user2):

$mkdir ~/.ssh

In Machine1(As user1):

$mkdir ~/.ssh
$ssh-keygen -t dsa
# keep entering
$cd ~/.ssh
$scp id_dsa.pub user2@Machine2:/home/user2/.ssh/authorized_keys

password:******

*Note:
Machine1 OS version: B.11.11 (RP3440)
Machine2 OS version: B.11.13 (RX6600)


Thanks
Minhaz

3 REPLIES
Md. Minhaz Khan
Super Advisor

Re: SSH/SCP without password

Dear Every body,

I have got my solution.

Thanks
Minhaz
Viktor Balogh
Honored Contributor

Re: SSH/SCP without password

Dear Minhaz,

...and what was the solution? Could you share it please? Maybe someone else can learn from it?

Regards,
Viktor
****
Unix operates with beer.
Md. Minhaz Khan
Super Advisor

Re: SSH/SCP without password

Dear ALL,
Please find the attachment for the solid procedure to SSH without password