You can use Telnet to access other systems. These Telnet commands will help you do that.
Start Telnet and establish a connection
Telnet is used from the command line, for example, the command prompt on Windows. Only one command is needed to start the client:
You will now be asked to enter the access data and will then be connected.
Telnet standard commands
The following overview shows the standard commands. Some of these can be extended with arguments and executed using the Telnet client:
|Opens the help menu
|Closes the current Telnet connection
|Displays the various parameters for the current connection (port, terminal type, etc.)
|Defines the variables for the respective operating system environment
|Determines how Telnet reacts to certain situations. The command changes the status from TRUE to FALSE or vice versa; using set or unset, the status can also be set directly — arguments are thus also valid for set/unset
|Terminates the current Telnet session if the remote host supports the logout option
|Sets the transmission type (text file, binary file)
|Establishes another connection to the selected host in addition to the existing one
|Terminates the Telnet client including all active connections
|Sends selected typical Telnet strings to the host
|Modifies the connection parameters
|Loads the predefined connection parameters
|Shows whether the connection is active
Since Telnet is operated from the command line, you should also know other commands. Get to know Windows CMD commands to easily find your way around the command prompt.
Telnet command options
Some commands can be extended by arguments, which means that more options are available to you. Here are some important parameters:
|Activates debug mode
|Attempts automatic login
|Opens tracefile to record appropriate information (see also “set tracefile”)
|If the host supports environ, you will be logged in as the specified user.
|-e escape char
|Sets an escape character
|No character is recognized as escape character
|Attempts to activate encryption
|Enables/disables the TRAPSIG mode of LINEMODE
|Enables/disables the EDIT mode of LINEMODE
|Enables/disables the SOFT_TABS mode of LINEMODE
|Enables/disables the LIT_ECHO-Modus of LINEMODE
|Sends “Abort process” sequence
|Sends “Abort output” sequence; the host flushes the output from itself to the client.
|Sends “Are you there” sequence; the host can confirm with a response.
|Sends “Break” sequence
|Sends “Erase character” sequence; the host erases the last character entered
|Sends Erase line sequence; the host erases the line that is being entered
|Sends “End of file” sequence
|Sends “End of record” sequence
|Sends the current escape character (see also “telnet -e”)
|Sends “Go ahead” sequence
|Requests the host to discard any input that has not yet been processed
|Provides information about the send command
|Determines whether characters entered should also be displayed
|(value can be TRUE/FALSE or a special character)
|Enables the “End of file” character (see also “send eof”)
|Enables erase character (see also “send ec”); works only in localchars mode (see also “toggle localchars”)
|Enables escape character (see also “telnet -e”)
|Enables abort output character (see also “send ao”); works only in localchars mode (see also “toggle localchars”)
|Enables “lnext” characters
|Enables “break” characters (see also “send brk”); works only in localchars mode (see also toggle localchars)
|Enables “reprint” character
|Enables “start” character; only if TOGGLE-FLOW-CONTROL is enabled
|Activates “stop” character; only if TOGGLE-FLOW-CONTROL is activated
|Enables “worderase” characters
|define variable value
|Assigns a value to a variable; values can be enclosed in single or double quotes.
|Deletes the specified variable
|Exports the specified variable
|Specifies that the specified variable may only be exported when Telnet is specifically requested to do so
|Lists all variables; * character indicates whether the variable is exported automatically.
|Provides information about the send command
|If both autosynch and localchars are active, an additional “synch” sequence is sent when the quit character is sent (see also “set quit”)
|(Initial state is TRUE)
|Enables/disables “binary” option on input and output
|Enables/disables “binary” option at input
|Enables/disables binary option on output
|TRUE: carriage return is set to <CR><LF>
|FALSE: carriage return is set to <CR><NUL> (FALSE is the normal state here)
|Switches the state of the “carriage return” mode
|Switches the state of the “Socket debug” mode (FALSE is the normal state here)
For more Telnet commands and options, as well as detailed documentation, check out the Telnet Man Page.
If you don’t really know the remote protocol yet, it’s worth taking a look at our detailed article on the subject — telnet. The article also explains how to enable Telnet in Windows.