tolinrome_13817
May 23, 2014Nimbostratus
using scp from F5 to copy file to remote location
I'm using scp to copy a file from the F5 to a remote location. When asked for the password it says: , permission denied, please try again. Of course the password is 100% correct. Why wont it let me copy the file to the remote server? Here is the script:
tmsh save /sys ucs ${SysName}_${Date}.ucs
${Delay:120}
scp /var/local/ucs/${SysName}_${Date}.ucs username@1.2.3.4:${SysName}_${Date}.ucs
password
When I do that it saves the file, then asks for the password.
Use expect to do, the instruction are found here https://community.f5.com/t5/codeshare/automate-scp-transfers-using-password/ta-p/308862