I'm trying to use a CLI script to export a file via SCP. The script uses the scp command, and then enters the password when prompted. It contains lines akin to:
Code: Select all
scp filename.dat user@location
mypassword
Code: Select all
scp filename.dat user@location
mypassword
Thanks for the reply. No luck. It didn't recognize the sshpass command. Here's the failure message:sadim wrote:Hi,
try: sshpass -p "mypassword" scp filename.dat user@location
Regards