Below is the script usually used for FTP.
So if it not password protected , then i guess u can remove the line - "user <FTP_LOGIN> <FTP_PASSWORD>"
# do the FTP put
ftp -i -n <<EOF >> $mylog
open <FTP_HOST>
user <FTP_LOGIN> <FTP_PASSWORD>
put <localFile> <remoteFile>
ls <remoteFile>
quit
EOF
Gentoo