FTP

FTP 120 Service Ready Soon vs 331 Username OK, Need Password

FTP 120 (Service Ready Soon) is a 1xx Positive Preliminary response, while 331 (Username OK, Need Password) is a 3xx Positive Intermediate response. 120 indicates that the service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly. In contrast, 331 means that user name okay, need password. The server recognized the username and is waiting for the corresponding password to complete authentication.

描述

The service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly.

何时出现

When connecting to an FTP server that is starting up or temporarily busy with maintenance tasks.

如何修复

Wait the indicated number of minutes and try connecting again. If the server never becomes ready, contact the server administrator.

描述

User name okay, need password. The server recognized the username and is waiting for the corresponding password to complete authentication.

何时出现

After sending the USER command with a valid username. The server is prompting for the PASS command.

如何修复

Send the PASS command with the correct password. If you get 530 after PASS, the password is wrong — verify your credentials.

主要区别

1.

120 is a 1xx Positive Preliminary response, while 331 is a 3xx Positive Intermediate response.

2.

FTP 120: The service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly.

3.

FTP 331: User name okay, need password. The server recognized the username and is waiting for the corresponding password to complete authentication.

4.

You encounter 120 when when connecting to an FTP server that is starting up or temporarily busy with maintenance tasks.

5.

You encounter 331 when after sending the USER command with a valid username. The server is prompting for the PASS command.

何时使用哪个

For 120 (Service Ready Soon): Wait the indicated number of minutes and try connecting again. If the server never becomes ready, contact the server administrator. For 331 (Username OK, Need Password): Send the PASS command with the correct password. If you get 530 after PASS, the password is wrong — verify your credentials.

了解更多