Hello I have a file inbound.sh
who am i
oracle
ls
-rwxr-xr-x 1 oacle dba 1159 Mar 12:23 inbound.sh
here is the contents
#! /bin/sh
#SFT to external directory
/bin/sftp externalserver.com <<EOF
user john johnpaswd
get newfile
quit
EOF
exit
However this script inbound.sh when executed ask me for password as folow:
Connecting to externalserver.com
oracle@externalserver.com's password:
How would I get this script to use user john as it is inside the script.
Thanks
who am i
oracle
ls
-rwxr-xr-x 1 oacle dba 1159 Mar 12:23 inbound.sh
here is the contents
#! /bin/sh
#SFT to external directory
/bin/sftp externalserver.com <<EOF
user john johnpaswd
get newfile
quit
EOF
exit
However this script inbound.sh when executed ask me for password as folow:
Connecting to externalserver.com
oracle@externalserver.com's password:
How would I get this script to use user john as it is inside the script.
Thanks