Understanding Telnet: A Network Application for Terminal Emulation, Study notes of Electrical and Electronics Engineering

What telnet is, how it works, and how to use it for terminal emulation connections to remote machines. It covers the role of the client and server software, the process of making a connection, and the different ways to give commands to the telnet client. It also includes important security considerations and alternative methods for logging out of remote systems.

Typology: Study notes

Pre 2010

Uploaded on 08/18/2009

koofers-user-je1
koofers-user-je1 🇺🇸

8 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
9/7/07
Telnet
Telnet is an application which provides terminal emulation connections to
remote machines. The application consists of two pieces of software that
cooperate: The client, which runs on the machine that is requesting the service,
and the server, which runs on the computer providing the service. The network
provides the medium by which the two communicate.
The simplest way to use telnet is, from the command line of the client
machine, type telnet <address>, where <address> is the domain-style address of
the remote machine:
H:\> telnet bayou.uh.edu.
Assuming the server application is running on the remote machine, it will respond
with, possibly, some messages, followed by the standard "login" prompt of the
remote machine:
Use of University of Houston computing and network facilities requires
prior authorization. Unauthorized access is prohibited. Usage may be
subject to security testing and monitoring. Abuse is subject to
criminal prosecution. A complete manual of security policies and
procedures is available at http://www.uh.edu/ in the Administration
directory.
Compaq Tru64 UNIX V5.1A (Rev. 1885) (creek.uh.edu)
login:
When a telnet connection is made to a remote machine, the user is then in
"terminal emulation" mode and simply logs into the remote machine. All text
typed at the local machine is given to the remote machine as if it were typed
there. In this mode, the user is never giving commands to the telnet program
itself. When the user logs out of the remote machine, the connection is closed
and telnet terminates:
creek.uh.edu> logout
Connection to host lost.
H:\>
However, there are two ways to give commands to telnet itself.
First, if you type telnet without an address, you are in the telnet client program
with a telnet> prompt and without a connection to a remote machine.
H:>telnet
Welcome to Microsoft Telnet Client
Escape Character is 'CTRL+]'
Microsoft Telnet>
Now you can give commands that the telnet client recognizes:
Microsoft Telnet> help
Commands may be abbreviated. Supported commands are:
c - close close current connection
d - display display operating parameters
o - open hostname [port] connect to hostname (default port 23).
q - quit exit telnet
set - set set options (type 'set ?' for a list)
sen - send send strings to server
pf3

Partial preview of the text

Download Understanding Telnet: A Network Application for Terminal Emulation and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Telnet

Telnet is an application which provides terminal emulation connections to

remote machines. The application consists of two pieces of software that

cooperate: The client , which runs on the machine that is requesting the service,

and the server , which runs on the computer providing the service. The network

provides the medium by which the two communicate.

The simplest way to use telnet is, from the command line of the client

machine, type telnet
, where
is the domain-style address of

the remote machine:

H:> telnet bayou.uh.edu.

Assuming the server application is running on the remote machine, it will respond

with, possibly, some messages, followed by the standard "login" prompt of the

remote machine:

Use of University of Houston computing and network facilities requires prior authorization. Unauthorized access is prohibited. Usage may be subject to security testing and monitoring. Abuse is subject to criminal prosecution. A complete manual of security policies and procedures is available at http://www.uh.edu/ in the Administration directory. Compaq Tru64 UNIX V5.1A (Rev. 1885) (creek.uh.edu) login:

When a telnet connection is made to a remote machine, the user is then in

"terminal emulation" mode and simply logs into the remote machine. All text

typed at the local machine is given to the remote machine as if it were typed

there. In this mode, the user is never giving commands to the telnet program

itself. When the user logs out of the remote machine, the connection is closed

and telnet terminates:

creek.uh.edu> logout Connection to host lost. H:>

However, there are two ways to give commands to telnet itself.

First, if you type telnet without an address, you are in the telnet client program

with a telnet> prompt and without a connection to a remote machine.

H:>telnet Welcome to Microsoft Telnet Client Escape Character is 'CTRL+]' Microsoft Telnet>

Now you can give commands that the telnet client recognizes:

Microsoft Telnet> help Commands may be abbreviated. Supported commands are: c - close close current connection d - display display operating parameters o - open hostname [port] connect to hostname (default port 23). q - quit exit telnet set - set set options (type 'set ?' for a list) sen - send send strings to server

st - status print status information u - unset unset options (type 'unset ?' for a list) ?/h - help print help information Microsoft Telnet> close Microsoft Telnet> status Not Connected Microsoft Telnet>quit H:>

Second, if you are connected to a remote machine, entering the escape

character ctrl-] (written ^] in telnet documentation) will return you temporarily to

the telnet> prompt to enter commands to the telnet client. Unless you have

"closed" the session on the remote machine, you can return to it by simply typing

"enter" at the telnet prompt, after which you are back to the remote host:

H:> telnet bayou.uh.edu.

Use of University of Houston computing and network facilities requires prior authorization. Unauthorized access is prohibited. Usage may be subject to security testing and monitoring. Abuse is subject to criminal prosecution. A complete manual of security policies and procedures is available at http://www.uh.edu/ in the Administration directory. Compaq Tru64 UNIX V5.1A (Rev. 1885) (bay.uh.edu) login: elee Password: Last successful login for elee0: Fri Sep 7 13:38:10 CDT 2007 from Barr.EE.UH.EDU Last unsuccessful login for elee0: Thu Sep 6 10:57:37 CDT 2007 from Tuxedo.EGR.UH.EDU bay.uh.edu> ls 2136 bgarcia.out ftncc.pas lafkoff.out sattler.out News bin gitau.dat macalos.dat seatass acctgen castrejon.dat gonzalezm.dat macalos.out test.dat acunzo.dat dead.letter gradebk mail torres.dat address deleon.dat jwill.dat mathfor torres.out adef.dat deleon.out kim.dat mathfort.txt vasquez.dat admin eegpa.exe kim.out mccabe.pas vasquez.out alisara.dat eegpa.for ladner.dat omoniyi.dat verastegui.dat ballweg.c erol.dat ladner.out quote.txt bgarcia.dat favor.dat lafkoff.dat sattler.dat bay.uh.edu> ^] (typed but not echoed to the screen) Welcome to Microsoft Telnet Client Escape Character is 'CTRL+]' Microsoft Telnet> status Connected to bayou.uh.edu Negotiated term type is ANSI Microsoft Telnet> (hit carriage return key) bay.uh.edu> (back in the session)

There is often confusion between the close and quit commands, which are

commands to the telnet client, and the command used to "logout" on the remote

system. If you simply type "close" or "quit" at the command prompt of the remote

system, and it is not a command recognized by that operating system, then

nothing will happen.

bay.uh.edu> close close: Command not found. bay.uh.edu> quit quit: Command not found. bay.uh.edu>