I'm facing problem when I pull a file from another machine to my machine using SCP. File is successfully transferred but each time it asks for password. I want to run this SCP
command as a cronjob
, How can I save password for this automation?
scp user@abc.com:/usr/etc/Output/*.txt /usr/abc/
user@abc.com's password:
ssh-copy-id
will take care of copying the encrypted credentials onto the remote host, that way it won't prompt for p/w next time that userssh
onto it. – fduff Oct 30 '17 at 08:28