ezoic

Friday, August 10, 2018

Sample code for automatically log into sftp , and load a file to sftp


sample code

#!/bin/sh
HOST='HOST'
USER='USER'
PASSWD='PASS'


sshpass -p $PASSWD sftp $USER@$HOST << EOF

put file1.txt

EOF
echo "end ftp"
exit

No comments:

Post a Comment

looking for a man

 I am a mid aged woman.  I was born in 1980. I do not have any kid. no complicated  dating before . I am looking for a man here for marriage...