I need to write a script for the crontab which will download a file from our remote server. Read man pages on scp and wrote;
scp ~/remotefiles/tst.txt firstname.lastname@example.org:~/remotefiles/tst.txt
OK, this works but it asks for password- so I can't use it as an automated crontab script. Man pages say scp asks for passwd, rcp doesn't. But, I have same problem with rcp. I checked to make sure I have /etc/hosts.equiv and /usr/home/sys/.rhosts. This is running on a virtual server.
So, how do I write a script that can either answer the password question, or wirte the rcp command so that it doesn't ask in the first place?