The ftp CommandThe File Transfer Protocol ( ftp ) command is used to start an interactive session to transfer files to and from two nodes using TCP ports 20 and 21. When using the ftp command from a DOS prompt, you are acting as an FTP client. The other end of your connection, with which FTP creates a session, is considered an FTP server providing FTP Server services. One important point to remember is that every layer of the OSI Reference Model needs to be working correctly to make a connection to a remote host. If you can use FTP to connect to a remote host and transfer files, the local machine and remote nodes' TCP/IP stack are functioning correctly. Although you can purchase third-party FTP software, I will only explain the general syntaxes for the FTP client provided by the Windows operating system and used at the command prompt. C:\> ftp 207.212.78.106 Connected to 207.212.78.106. 220-Welcome to Digital Crawl Spaces. Please e-mail Sean Odom (sean@digitalcrawlspaces.com) for help or login problems. Thank you. User (207.212.78.106:(none)): sean 331 User sean Ok, password please Password:***** 230 Password Ok, User logged in ftp> The ftp command has several syntaxes. I will briefly explain each and then the most common commands used to find and transfer files. ftp [-v] [-d] [-i] [-n] [-g] [-s: filename ] [ host ]
Once an FTP client has connected to an FTP server, a completely different set of commands are used; the most used commands are as follows :
|