可以交互方式登录FTP服务器,但非交互方式拒绝密码

时间:2018-07-18 07:07:36

标签: shell ftp ftp-client

我正在尝试连接到FTP服务器。在交互模式下,我没问题。

Connected to datatransfer.cj.com.
220 Commission Junction FTP Server.  All transfers are logged.
Name (datatransfer.cj.com:gwendal): <mysuperuser>
331 User name okay, need password for mysuperuser.
Password: <interactive password input>
230-WARNING: This server is for exchange of business data with Commission Junction only.
  230- Any attempt to upload data that has not been approved by Commission Junction
  230- will result in termination of your ftp account. Access restrictions apply.
  230- The IP address of this host name may change without notice.
230 User mysuperuser logged in from xx.xx.xx.xx

但是我需要在shell脚本中使用此ftp,因此我必须使用非交互模式。

Connected to datatransfer.cj.com.
220 Commission Junction FTP Server.  All transfers are logged.
ftp> quote USER <mysuperuser>
331 User name okay, need password for mysuperuser.
ftp> quote PASS <mypassword>
530 Authentication failed.
ftp> quote PASS "<mypassword>"
530 Authentication failed.

我真的不知道发生了什么。密码包含%,但我认为这不是大问题。我也试图逃避它,同样的问题。 当然,我完全确定密码正确。

预先感谢您的帮助。

0 个答案:

没有答案