I m trying to pull a file from a Solaris server to my Linux server and I did it successfully by using scp
.I want to run this below command as a cronjob, How can I save password for this automation for Solaris to linux file transfer?
scp -r root@serverA.com:/usr/abc/* /home/def/
Password:
But every time it prompt for password. I have already generate a set of public and private ssh keys on my machine for my user with:
ssh-keygen
And copy my public key to the remote host:
ssh-copy-id root@serverA.com
Note: I successfully run it at cron
when both servers are linux server. Facing problem for Solaris server to linux server.Here my local server is linux and remote one is Solaris server.
sshd_config
, restartsshd
and repeat. – Jakuje Feb 18 '16 at 13:11