{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Vii sem te aug11dec11 page 37 procedure telnet server

Info iconThis 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]:~$
Background 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-
Background 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 ]}