./put_esecuretransfer.ksh
Error: Could not open connection to `qaz00100@move.etransfer.com': Could not connect to `move.etransfer.com': Disconnected by application
when I change the script to
#!/usr/bin/ksh
sftpdate=`date +"%Y%m%d%H%M"`
FILENAME=hsa-selectacc.asc
logfile=/home/hrdata/usinterfaces/log/etransfer_$sftpdate.log
cd /home/hrdata/usinterfaces/out
if ! -e $FILENAME
then
print "ERROR - $FILENAME does not exist."
print "Exitting ..."
exit 1
fi
sftp qaz00100@move.etransfer.com
and execute the script put_etransfer.ksh
It will ask for password and if I provide the password it will get connected but i need to give the command put hsa-selectacc.asc

Re: sftp file into the target system with encrypted password

‏2012-11-30T19:27:42Z

This is the accepted answer.
This is the accepted answer.

If I understand what you are trying to do I think you need to either:
a) have ssh keys between the two systems that will allow password-less transfer
b) put the password in the command file "passwd <yourpasswordhere>"

There may be another way to pass in the password like we used to with .netrc files but it would be dependent on the sftp you are using and whether your company allows you to do that.

Re: sftp file into the target system with encrypted password

If I understand what you are trying to do I think you need to either:
a) have ssh keys between the two systems that will allow password-less transfer
b) put the password in the command file "passwd <yourpasswordhere>"

There may be another way to pass in the password like we used to with .netrc files but it would be dependent on the sftp you are using and whether your company allows you to do that.