echo "Upload File..."
ftp -n ${FTPHOST}
user ${USER} ${PASSWD}
binary
prompt
put 1314.txt
close
bye
!
但执行登陆时系统提示要关闭FTP服务器的被动模式,我就不是太懂了,请各位高手指点一下,谢谢了。
Upload File...
Connected to 192.168.0.100.
220 Microsoft FTP Service
500 'AUTH GSSAPI': command not understood
500 'AUTH KERBEROS_V4': command not understood
KERBEROS_V4 rejected as an authentication type
ftp> bin
530 Please login with USER and PASS.
ftp> dir
530 Please login with USER and PASS.
Passive mode refused. Turning off passive mode.
530 Please login with USER and PASS.
ftp: bind: Address already in use
ftp>