Friday, January 09, 2009

FTP (FILE TRANSFER PROTOCOL)


File Transfer Protocol is designed to do exactly that, transfer files between a server and a client.you can start up the FTP program on your machine and connect to a server. FTP service running on default port 21 on a remote machine.FTP service supports on most of today's operating systems.


FTP COMMANDS
You can get a list of the commands by typing '?' and pressing the enter key.



INTIATING FILE TRANSFERS FROM THE COMMAND LINE


1)On the command line, enter FTP .
2)Enter your login information if prompted.
3)Set your transfer mode to either 'Ascii' or 'Binary' depending upon the type of file you are transferring.
4)You can discover what directory you have connected to by entering the comand 'pwd'.
5)To change directories on the remote machine, enter 'cd' and the name of the directory.
6)To change directories locally, enter 'lcd' To put a file on the remote machine, enter PUT and the name of the file.
7)Once the transfer completes, you cen enter 'close' and then 'quit'('!' and 'bye' also serve the same function as quit).


Passive Mode
You can tranfer the files in Passive mode also.

1)The client opens a connection to the server on TCP port 21
2)The server accepts the connection.
3)The server initiates a connection to the client using port 20 as the source port (for the data channel)
4)The client accepts the connection and acknowledges all data transfers on port 20.

No comments: