Operating System - HP-UX
1834406 Members
2173 Online
110067 Solutions
New Discussion

Re: enable scp from one node to another without promping for password

 
La_4
Advisor

enable scp from one node to another without promping for password

Hi,

I am trying to scp file from one node to another one for specific user example tom from nodeA to rob on nodeB. tom and rob belong to the same group.

- i genereated key with #ssh-keygen -t rsa under /home/tom/.ssh/
- i then open tom.pub file, past it on nodeB under /home/rob/.ssh/authorized_keys and save the file. i also made sure that the file has no gap.
- when i tried to scp file.txt tom@nodeB:/home/rob/ it always asking for password. after putting password, the file is copied. I not suppose to be asked for password.

Could someone help if i miss something, step and/or something. i checked the permission .ssh is 700 and .ssh/authorized_keys is 644.

Thanks alot!

-L

3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: enable scp from one node to another without promping for password

Shalom,

http://www.hpux.ws/?p=10

Complete guide there with perms.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ankitj1983
Frequent Advisor

Re: enable scp from one node to another without promping for password

Hello,

Check if there is another file with name authorized_keys2 then make entry in it.

remove known hosts entry form TOM system.

Regards

Ankit

Horia Chirculescu
Honored Contributor

Re: enable scp from one node to another without promping for password

>- i then open tom.pub file, past it on nodeB under /home/rob/.ssh/authorized_keys and save the file. i also made sure that the file has no gap.

You should scp this file to the nodeB (not copy &paste from one to other node)

Best regards
Horia.
Best regards from Romania,
Horia.