TELNET

TELNET (1)

NAME

telnet log in to remote host

SYNOPSIS

telnet [-ec][-8] [host [port]]

DESCRIPTION

Telnet is used to communicate with another host using the TELNET protocol. When invoked without the host and port arguments, telnet enters command mode, as indicated by its prompt (telnet>). In this mode, it accepts and executes the commands discussed below.

When invoked with a host [and port], telnet performs an open command with those arguments. The host can be either the host name or its Internet address. The port can be either the service number or its name (see services(4)). If port is not speci- fied, telnet will attempt to contact the server at the default port. Once a connection has been opened, telnet enters input mode. In this mode, all text entered from the keyboard is sent to the remote host for processing.

To enter command mode from input mode, enter the telnet escape character. To return to input mode, enter a carriage return at the telnet> prompt. To execute a single command from input mode, and return automatically to input mode, enter the telnet command preceded by the escape character (for example, ˜linemode). The default escape character is the tilde (˜). Use the -ecommand line option or the escape command to change the escape character for a telnet session.

The -8option enables the transmission of 8-bit data to facilitate communication with hosts using an 8-bit character set such as the Asian or European character set. If this option is not used, parity bits are stripped from the data.

Logging out of the shell on the remote host will terminate the telnet connection, returning you to the local shell if the connection was opened from the telnet command line or to the telnet> prompt if the connection was opened from command mode. This can also be accomplished with the close command. The quit command will terminate both the open connection and the telnet session, always returning you to the local shell.

COMMANDS

The following commands are recognized by the telnet command interpreter. They may be abbreviated, so long as they remain unique. The normal terminal editing conventions are available in command mode.

close Close an open telnet connection, returning to the telnet> prompt (command mode) or to the local shell (input mode).

crmod

Toggle carriage return mode. When disabled (default), no translation of carriage-return characters takes place. When enabled, a carriage-return received from the remote host will be mapped into a carriage return and a line feed. This mode does not affect characters typed by the user, only those received. This mode is required by hosts that prefer the user to do local echoing.

Issue 3

E-43