{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Known tcp ports port 21 is used for the control

Info iconThis preview shows pages 4–6. Sign up to view the full content.

View Full Document Right Arrow Icon
known TCP ports: Port 21 is used for the control connection, and port 20 is used for the data connection. The above figure shows the basic model of FTP. The client has three components: user interface, client control process, and the client data transfer process. The server has two components: the server control process and the server data transfer process. The control connection is made between the control processes. The data connection is made between the data transfer processes. The control connection remains connected during the entire interactive FTP session. The data connection is opened and then closed for each file transferred. It opens each time commands that involve transferring files are used, and it closes when the file is transferred. In other words, when a user starts an FTP session, the control connection opens. While the control connection is open, the data connection can be opened and closed multiple times if several files are transferred.
Background image of page 4

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Aug’11–Dec’11 Page 5/7 Procedure: FTP Server Machine 1. Create a user account( Example: ftpuser) Select System->Administration->Users and Groups Click Add in the User Settings window Type student123 in the Authenticate window Type Name and Username in the Create New User window, Click OK Type New Password & Confirmation in Change User Password window, Click OK Close User Settings 2. Configuring the FTP Server [email protected]:~$ sudo gedit /etc/vsftpd.conf [sudo] password for student: [email protected]:~$ sudo gedit /etc/vsftpd.chroot_list [email protected]:~$ sudo /etc/init.d/vsftpd restart 3. Find the IP address of the server Launch the Terminal (Applications->Accessories->Terminal) Type ifconfig eth0, to know inet address/IP address FTP Client Machine 1. Launch the Terminal (Applications->Accessories->Terminal) 2. Type ftp to connect to the remote machine. 3. The following shows an actual FTP session for retrieving a list of items in a directory (commands are shown in bold font). [email protected]:~$ ftp Connected to 220 (vsFTPd 2.3.2) Name ( ftpuser 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> pwd 257 "/home/ftpuser" ftp> !pwd /home/student ftp> ls 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. -rw-r--r--
Background image of page 5
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page4 / 7

known TCP ports Port 21 is used for the control connection...

This preview shows document pages 4 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon bookmark
Ask a homework question - tutors are online