Vii sem te aug11dec11 page 37 procedure telnet server

Info icon This preview shows pages 3–5. Sign up to view the full content.

View Full Document Right Arrow Icon
VII SEM, TE Aug’11–Dec’11 Page 3/7 Procedure: TELNET Server Machine 1. Create a user account( Example: telnetuser) 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. Find the IP address of the server Launch the Terminal (Applications->Accessories->Terminal) Type ifconfig eth0, to know inet address/IP address TELNET Client Machine 1. Launch the Terminal (Applications->Accessories->Terminal) 2. Type telnet 192.168.1.200 to connect to the remote machine. 3. Using the VI editor, write a small C program on the remote machine, compile and execute as shown below (commands are shown in bold font). [email protected]:~$ telnet 192.168.1.200 Trying 192.168.1.200... Connected to 192.168.1.200. Escape character is '^]'. Ubuntu 11.04 server login: telnetuser Password: Last login: Fri Dec 16 12:28:01 IST 2011 from student-VirtualBox.local on pts/1 Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-generic i686) * Documentation: https://help.ubuntu.com/ 254 packages can be updated. 89 updates are security updates. [email protected]:~$ vi example.c [email protected]:~$ cc example.c [email protected]:~$ ./a.out Hello World! [email protected]:~$ logout Connection closed by foreign host. [email protected]:~$
Image of page 3

Info iconThis 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 4/7 12. Demonstrate the operations of FTP Theory: File Transfer Protocol (FTP) is the standard mechanism provided by TCP/IP for copying a file from one host to another. Although transferring files from one system to another seems simple and straightforward, some problems must be dealt with first. For example, two systems may use different file name conventions. Two systems may have different ways to represent text and data. Two systems may have different directory structures. All these problems have been solved by FTP in a very simple and elegant approach. FTP differs from other client/server applications in that it establishes two connections between the hosts. One connection is used for data transfer, the other for control information (commands and responses). Separation of commands and data transfer makes FTP more efficient. The control connection uses very simple rules of communication. We need to transfer only a line of command or a line of response at a time. The data connection, on the other hand, needs more complex rules due to the variety of data types transferred. However, the difference in complexity is at the FTP level, not TCP. For TCP, both connections are treated the same. FTP uses two well-
Image of page 4
Image of page 5
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