Known tcp ports port 21 is used for the control

Info icon This preview shows pages 4–7. 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.
Image of page 4

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

View Full Document Right Arrow Icon
VII SEM, TE 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 192.168.1.200 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 192.168.1.200 Connected to 192.168.1.200. 220 (vsFTPd 2.3.2) Name (192.168.1.200:student): 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-- 1 0 0 25456 Dec 16 12:13 create new user.png -rw-r--r-- 1 1002 1002 179 Dec 16 11:58 examples.desktop
Image of page 5
VII SEM, TE Aug’11–Dec’11 Page 6/7 -rw-r--r-- 1 0 0 27257 Dec 16 12:13 ftpuser.png -rw-r--r-- 1 0 0 36090 Dec 16 12:13 ftpuser1.png -rw-r--r-- 1 0 0 320213 Dec 16 12:13 ifconfig.png 226 Directory send OK.
Image of page 6

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

View Full Document Right Arrow Icon
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern