HP-UX Reference (11i v1 00/12) - 1 User Commands N-Z (vol 2)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/neqn.1
________________________________________________________________
___ ___
t
telnet(1) telnet(1)
NAME
telnet - user interface to the TELNET protocol
SYNOPSIS
telnet [[options ]host [port ]]
DESCRIPTION
telnet is used to communicate with another host using the TELNET protocol. If telnet is invoked
without arguments, it enters command mode, indicated by its prompt (telnet>). In this mode, it accepts
and executes the commands listed below. If telnet is invoked with arguments, it performs an open
command (see below) with those arguments.
Once a connection has been opened, telnet enters an input mode. The input mode will be either ‘‘char-
acter at a time’’ or ‘‘line by line’’, depending on what the remote system supports.
In ‘‘character at a time’’ mode, most text typed is immediately sent to the remote host for processing.
In ‘‘line by line’’ mode, all text is echoed locally, and (normally) only completed lines are sent to the remote
host. The ‘‘local echo character’’ (initially ˆE) can be used to turn off and on the local echo (this would
mostly be used to enter passwords without the password being echoed).
In either mode, if the localchars toggle is TRUE (the default in line mode; see below), the user’s
quit and intr characters are trapped locally, and sent as TELNET protocol sequences to the remote
side. There are options (see toggle autoflush and toggle autosynch below) which cause this
action to flush subsequent output to the terminal (until the remote host acknowledges the TELNET
sequence) and flush previous terminal input (in the case of quit and intr).
While connected to a remote host,
telnet command mode can be entered by typing the telnet
‘‘escape character’’ (initially ˆ]). When in command mode, the normal terminal editing conventions are
available.
telnet supports eight-bit characters when communicating with the server on the remote host. To use
eight-bit characters you may need to reconfigure your terminal or the remote host appropriately (see
stty(1)). Furthermore, you may have to use the
binary toggle to enable an 8-bit data stream between
telnet and the remote host. Note that some remote hosts may not provide the necessary support for
eight-bit characters.
If, at any time, telnet is unable to read from or write to the server over the connection, the message
Connection closed by foreign host. is printed on standard error. telnet then exits with
a value of 1.
telnet supports the TAC User ID (also known as the TAC Access Control System, or TACACS User ID)
option. Enabling the option on a host server allows the user to telnet into that host without being
prompted for a second login sequence. The TAC User ID option uses the same security mechanism as
rlogin for authorizing access by remote hosts and users. The system administrator must enable the (tel-
netd) option only on systems which are designated as participating hosts. The system administrator must
also assign to each user of TAC User ID the very same UID on every system for which he is allowed to use
the feature. (See telnetd(1M) and the Managing Systems and Workgroups manual)
The following telnet options are available:
-8 Enable cs8 (8 bit transfer) on local tty.
-e c Set the telnet command mode escape character to be ˆc instead of its default value of
ˆ].
-l Disable the TAC User ID option if enabled on the client, to cause the user to be prompted for
login username and password. Omitting the -l option executes the default setting.
Commands
The following commands are available in command mode. You need only type enough of each command to
uniquely identify it (this is also true for arguments to the mode, set, toggle, and display com-
mands).
open host [port]
Open a connection to the named host at the indicated port. If no port is specified, telnet
attempts to contact a TELNET server at the standard TELNET port. The hostname can be
either the official name or an alias as understood by gethostbyname()
(see
gethostent(3N)), or an Internet address specified in the dot notation as described in
hosts(4). If no hostname is given,
telnet prompts for one.
HP-UX Release 11i: December 2000 1 Section 1919
___
___