
The following list describes what happens with each of the four messages Keith sends in the figure:
|
1. |
Keith first sends the server his username, using the FTP USER command. This command allows Keith's FTP client software to supply a username to the FTP server for authentication.
|
|
2. |
Next, Keith's FTP client uses the FTP PASS command to supply a corresponding password to the FTP server. At this point, the FTP server can decide whether Keith is a valid user of the FTP server. When the FTP server replies with an "FTP OK" message, it means that Keith has been authenticated.
|
|
3. |
Next, Keith's FTP client uses the FTP PUT command to tell the server that Keith will send the contents of the file in the upcoming messages, and that the file's name is file1.
|
|
4. |
Finally, Keith sends the actual contents of the file.
|
This entire process is a waste of time unless a couple of things are true. First, others must have the ability to authenticate to the server so that they can gain access to the files. They must also actually want to get to the files! Figure 8-12 shows Conner connecting to the FTP server and getting the file (called file1) that Keith put on the server.