| Session commands |

To begin an FTP session, the USER command is sent to the server:

> USER ftpuser

The server responds with:

331 Password required for ftpuser.

The client must respond with the password:

> PASS mypassword

The server responds with:

230 User ftpuser logged in.

The session is now established, and the user can begin issuing various file and directory- related commands.

To end the session, the client sends:

> QUIT

The server responds with:

221

The session is now closed, and any further attempt to send commands to the server will fail.

Next: File Commands