java當中socket使用 Server-U 的ftp 代碼指令

1開頭-成功
2開頭-成功
3開頭-權限問題
4開頭-文件問題
5開頭-服務器問題
150 FILE: %s
150 Opening %s mode data connection for %s (%I64d Bytes).
150 Opening %s mode data connection for %s.
150 Opening ASCII mode data connection for /bin/ls.
150 Opening BINARY mode data connection for MLSD.
200 (end of 'index %s')
200 Command channel switched to clear-text.
200 Command OK, %I64d Bytes available on %s
200 Command okay.
200 EXEC command successful (TID=%u).
200 Message received okay.
200 MLST OPTS
200 MODE S ok.
200 MODE Z LEVEL set to %d.
200 MODE Z ok.
200 Noted.
200 Opened OK (but not really).
200 PBSZ command OK. Protection buffer size set to 0.
200 PBSZ=0
200 PORT Command successful.
200 PROT command OK. Using clear data connection.
200 PROT command OK. Using private data connection.
200 SSCN:CLIENT METHOD
200 SSCN:SERVER METHOD
200 STRU F ok.
200 STRU R ok.
200 Transfer progress notification is off.
200 Transfer progress notification is on.
200 Type set to A.
200 Type set to I.
202 Command not implemented, superfluous at this site.
202 Command not implemented, superfluous at this site.
210 UTC%+ld
211 End
211 End of status.
211-Extension supported
211-Status for user %Name from %IP:
213 %I64d
213 %s
214 Direct comments or bugs to [email protected].
214- The following commands are recognized (* => unimplemented).
215 UNIX Type: L8
220 Service ready for new user.
220 Serv-U FTP Server v%s for WinSock ready...
221 Goodbye!
226 ABOR command successful.
226 Transfer complete.
226 Transfer complete.
226 Transfer complete.
227 Entering Passive Mode (%d,%d,%d,%d,%d,%d)
230 Password changed okay.
230 Switching to SYSTEM MAINTENANCE mode.
230 User logged in, proceed.
230 User logged in.
231 Switching to GROUP MAINTENANCE mode.
232 Switching to DOMAIN MAINTENANCE mode.
233 Switching to READ-ONLY MAINTENANCE mode.
233 User logged in, PASSWORD EXPIRED - please change before proceeding.
234 AUTH command OK. Already have SSL connection.
234 AUTH command OK. Initializing SSL connection.
250 %X
250 DELE command successful.
250 Directory changed to %s
250 End.
250 RMD command successful.
250 RNTO command successful.
250-Listing %s
253 Attributes changed okay.
253 Date/time changed okay.
257 "%s" directory created.
257 "%s" is current directory.
321 Transferred %I64d Bytes.
331 Response to otp-md%d %u %s required for skey.
331 User name okay, need password.
331 User name okay, please send complete E-mail address as password.
350 File or directory exists, ready for destination name
350 Restarting at %I64d. Send STORE or RETRIEVE.
421 Data connection closed (SSL/TLS negotiation failed).
421 Service closing control connection.
425 Cannot open data connection.
425 Cannot open data connection.
425 Cannot open data connection.
425 Try later, data connection in use.
425 Try later, data connection in use.
425 Try later, data connection in use.
425 Try later, out of network sockets.
425 Try later, out of network sockets.
425 Try later, out of network sockets.
425 Unable to listen, too many pending PASV requests from same client IP.
425 Unable to set up passive listening socket.
426 Data connection closed, cannot read file %s.
426 Data connection closed, cannot write file %s - disk full?
426 Data connection closed, error compressing data stream.
426 Data connection closed, error decompressing data stream.
426 Data connection closed, file transfer %s aborted by client.
426 Data connection closed, file transfer %s aborted.
426 Data connection closed, receive file %s aborted.
426 Data connection closed, transfer aborted.
426 Transfer aborted.
431 Account temporarily locked for other user, please try later.
431 Password not changed, no match for old password.
431 Unable to negotiate secure command connection.
432 Password not changed, new password should be at least %d characters in length.
432 Password not changed, new password should contain at least one upper-case character and symbol
432 Password not changed, old and new passwords cannot be identical.
450 Cannot open file %s for reading.
452 Sorry, insufficient disk quota - receive file %s aborted.
500 '%s': command not understood.
501 %s: Not a directory.
501 Cannot EXEC command line (error=%u).
501 Invalid MLST options
501 Invalid option.
501 Not enough space, only %I64d Bytes available on drive %s
501 Permission denied.
501 SITE option not supported.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Syntax error in parameters or arguments.
501 Wildcards not allowed.
502 Syntax error - use SITE PSWD "<oldpassword>" "<newpassword>".
503 Bad sequence of commands.
503 Bad sequence of commands.
503 Secure command connection required prior to PBSZ command.
503 Secure command connection required prior to PROT command.
504 Command not implemented for that parameter.
504 Command not implemented for that parameter.
504 Command not implemented for that parameter.
504 Unknown security mechanism.
510 Cannot determine server time zone.
521 Data connection cannot be opened with this PROT setting.
522 SSL/TLS lib refuses to initiate secure data connection.
530 Cannot change Anonymous password.
530 Cannot change password.
530 Not logged in, cannot find home directory.
530 Not logged in, home directory does not exist.
530 Not logged in, need secure connection.
530 Not logged in, only %d sessions from same IP allowed concurrently.
530 Not logged in, only one session from same IP allowed at a time.
530 Not logged in, too many tries with incorrect password.
530 Not logged in, unauthorized IP address.
530 Not logged in, use real E-mail address as password.
530 Not logged in.
530 Not logged in.
530 Not logged in.
530 Only client IP address allowed for PORT command.
530 Only client IP address allowed to connect to PASV socket.
530 PASSWORD EXPIRED - please change password before proceeding.
530 Port number has to be between 1024 and 65535.
530 Sorry, no ANONYMOUS access allowed.
531 SSL/TLS lib refuses to initiate secure command connection.
533 SSL command connection required prior to CCC command.
534 Invalid option. Secure data connection required for implicit SFTP.
534 Invalid option. Secure data connection required for implicit SFTP.
550 %s: Cannot create file.
550 %s: Cannot delete directory.
550 %s: Cannot delete file.
550 %s: Cannot determine date/time.
550 %s: Failed to create.
550 %s: No such file or directory.
550 %s: No such file or directory.
550 %s: No such file or directory.
550 %s: No such file or directory.
550 %s: No such file or directory.
550 %s: No such file or directory.
550 %s: No such file or directory.
550 %s: No such file or directory.
550 %s: No such file.
550 %s: No such file.
550 %s: Permission denied.
550 %s: Permission denied.
550 %s: Permission denied.
550 Cannot change path to a port.
550 Cannot create a port.
550 Cannot create INDEX for ports.
550 Cannot create unique file name.
550 Cannot delete a port.
550 Cannot delete account home directory.
550 Cannot determine date/time for a port.
550 Cannot determine size of a port.
550 Cannot EXEC a port.
550 Cannot list port.
550 Cannot position file at requested starting point.
550 Cannot read requested number of bytes from file.
550 Cannot remove a port.
550 Cannot rename to a port.
550 Cannot RESTart at any position while APPEnding to a file.
550 Cannot RESTart beyond end-of-file.
550 Cannot RESTart in a (new) unique zero-length file.
550 Cannot RESTart in a new (zero-length) file.
550 File date/time cannot be set to future.
550 File transfer not allowed, server stop is pending.
550 File transfers not allowed, server stop is pending.
550 MDTM cannot change date/time on this server.
550 No files found.
550 No maintenance manager client.
550 Passive mode not allowed on this server.
550 Permission denied
550 Permission denied.
550 Permission denied.
550 Permission denied.
550 Permission denied.
550 Permission denied.
550 Permission denied.
550 Permission denied.
550 Permission denied.
550 Permission denied.
550 Permission denied.
550 Sorry, insufficient credit for download - upload first.
550 Sorry, maximum number of GETs reached for this session.
550 Sorry, maximum number of PUTs reached for this session.
553 %s: Cannot change attributes.
553 %s: Cannot change date/time.
553 %s: Unable to rename file or directory.
553 Server Edition does not support remote administration.


有時ftp上傳,下載時,總是連接出錯,無外乎以下原因,僅供參考:

Serv-U BBSFTP 提示信息詳解
1。 550 Not enouth credit to download .(bbsftp v2.6CE)


該提示信息一般在下載文件時出現。該提示表示您當前的下載流量不夠。

2。530 Not logged in.(bbsftp v2.6CE)[FTP<202.15.29.29:21> User<rick> DB-FtpUserDown]

該提示信息一般在登錄失敗時出現。該提示表示用戶 rick 在FTP 202.15.29.29:21 中不存在.

3。530 Not logged in, unauthorized IP address.(bbsftp v2.6CE)

表示IP地址未授權,包流量用戶或包時間用戶一般修改允許登錄的IP地址範圍後就可以登錄了.

公共帳號,首先需要進行購買,才能登錄.否則也會有這個提示信息.這樣做是爲了防止公共帳號被盜連.

4。530 Not logged in.(bbsftp v2.6CE)[BadPassword][3]

這個提示信息很明確了,密碼錯誤。

5。530 Not logged in.(bbsftp v2.6CE)[UserDBError-FTP_USERS]

出現這個提示一般是參數設置錯了,如果沒有定製過數據庫視圖FTP_USERS,請在設置中 將是否使用數據視圖設置爲不使用。

6。530 Not logged in.(bbsftp v2.6CE)[UserDBError-FtpUserDown]

出現這個錯誤一般是數據庫出問題了,可能是mysql字符集設置導致的,如果是免費版的bbsftp,還可能是mysql的優化設置導致的。

7。421 Your Account Is Expired!(bbsftp v2.6CE)

這個提示信息一般在用戶登錄時出現。意思是說該賬號已過期。

流量購買賬號,遇到這個錯誤信息,一般在論壇上更新一下自己的賬號信息就可以了(在購買界面進行一次購買操作)。

時間購買賬號,那就需要在論壇上購買賬號的使用時間了。

公共賬號密碼,很少遇到這種提示,如果遇到這個提示信息,表示公共賬號剛好多了密碼更新時間了,這時之前的購買記錄都會被清空,您需要重新購買公共賬號和密碼才能登錄。

8。421 Your Account Is Disabled!(bbsftp v2.6CE)

這個信息一般在用戶登錄時出現,表示該賬號被禁用了。只能聯繫管理員解決了

9。530 Not logged in, home directory does not exist.(bbsftp v2.6CE)


一般在用戶登錄時出現. 意思是說用戶的根目錄不存在.

仔細檢查一下這個用戶,看看他 對應的角色是否已經配置了. 如果角色不存在顯然是有問題的.

然後檢查其對應角色裏面的 FTP根目錄的設置, 看看該設置填的路徑在 ftp服務器上是否存在.

如果存在的一般是沒有問題的. 要注意一下三點:

1 修改角色設置後要重啓servu纔會生效.

2 如果該路徑在ntfs格式的磁盤上,要保證ftp服務器有權限 訪問這個路徑.

3 如果設置了本地目錄安全參數. 該路徑必須是在安全目錄設置的路徑範圍內.


10。 550 Permission denied

一般是路徑訪問規則的權限設置不正確,

首先檢查用戶對應的角色名,

然後檢查角色的設置,看看是否設置了路徑訪問規則的組號。

再檢查相應的組號的路徑訪問規則組,

看看是否添加了FTP根目錄的訪問權限。

有時候因爲數據庫的原因導致中文字符錯誤,可以試試用英文路徑名。

注意修改這些設置需要重啓servu。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章