FTP 220 Service Ready vs 250 File Action OK
Both FTP 220 (Service Ready) and 250 (File Action OK) belong to the 2xx Positive Completion category. 220 indicates that service ready for new user. This is the greeting message sent by the FTP server when a client first connects. Meanwhile, 250 means that requested file action okay, completed. The operation on the file or directory was successful.
説明
Service ready for new user. This is the greeting message sent by the FTP server when a client first connects.
このコードが表示される場合
Immediately upon connecting to an FTP server. This is the welcome banner confirming the server is accepting connections.
解決方法
No fix needed — the server is ready. Proceed with USER and PASS commands to authenticate.
説明
Requested file action okay, completed. The operation on the file or directory was successful.
このコードが表示される場合
After successfully changing directories (CWD), deleting a file (DELE), or renaming a file (RNTO).
解決方法
No fix needed — the file operation completed successfully.
主な違い
FTP 220: Service ready for new user. This is the greeting message sent by the FTP server when a client first connects.
FTP 250: Requested file action okay, completed. The operation on the file or directory was successful.
You encounter 220 when immediately upon connecting to an FTP server. This is the welcome banner confirming the server is accepting connections.
You encounter 250 when after successfully changing directories (CWD), deleting a file (DELE), or renaming a file (RNTO).
どちらをいつ使うか
For 220 (Service Ready): No fix needed — the server is ready. Proceed with USER and PASS commands to authenticate. For 250 (File Action OK): No fix needed — the file operation completed successfully.