Posted on 2012-03-22
I would like to know how to pass a password for a sftp routine,
I am sending a file using sftp and need to send the password. The $PASS does not work and I am not sure how this is done. When I run my script, it asks for a password that I need to type for the script to continue. Thanks.
sftp -oport=22 $USER@$NODE 2>$ftp_message_file 1>&2 <<EOF
get $NEW_FILE $NEW_FILE