<h3>NAME</h3><p><strong>telnet</strong> - user interface to the <strong>TELNET</strong> protocol</p><h3>SYNOPSIS</h3><p><strong>telnet</strong> [-<strong>8EFKLacdfrx</strong> ] [-<strong>X</strong> <em>authtype</em> ] [-<strong>b</strong> <em>hostalias</em> ] [-<strong>e</strong> <em>escapechar</em> ] [-<strong>k</strong> <em>realm</em> ] [-<strong>l</strong> <em>user</em> ] [-<strong>n</strong><em>tracefile</em> ] [<em>host</em> [<em>port</em> ] ]</p><h3>DESCRIPTION</h3><p>The <strong>telnet</strong> command is used to communicate with another host using the <strong>TELNET</strong> protocol. If<strong>telnet</strong> is invoked without the <em>host</em> argument, it enters command mode, indicated by its prompt (<strong>telnet&gt;</strong> ) In this mode, it accepts and executes the commands listed below. If it is invoked with arguments, it performs an <strong>open</strong> command with those arguments.</p><p>The options are as follows:</p><p><strong>-8</strong></p><p>Specifies an 8-bit data path. This causes an attempt to negotiate the <strong>TELNET BINARY</strong>option on both input and output.</p><p><strong>-E</strong></p><p>Stops any character from being recognized as an escape character.</p><p><strong>-F</strong></p><p>If Kerberos V5 authentication is being used, the -<strong>F</strong> option allows the local credentials to be forwarded to the remote system, including any credentials that have already been forwarded into the local environment.</p><p><strong>-K</strong></p><p>Specifies no automatic login to the remote system.</p><p><strong>-L</strong></p><p>Specifies an 8-bit data path on output. This causes the BINARY option to be negotiated on output.</p><p><strong>-X</strong> <em>atype</em></p><p>Disables the <em>atype</em> type of authentication.</p><p><strong>-a</strong></p><p>Attempt automatic login. Currently, this sends the user name via the <strong>USER</strong> variable of the <strong>ENVIRON</strong> option if supported by the remote system. The name used is that of the current user as returned by getlogin(2) if it agrees with the current user ID, otherwise it is the name associated with the user ID.</p><p><strong>-b</strong> <em>hostalias</em></p><p>Uses <a href="https://www.lifewire.com/who-is-logged-onto-my-computer-4037399" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">bind</a>(2) on the local socket to bind it to an aliased address (see ifconfig(8) and the &#96;&#96;alias&#39;&#39; specifier) or to the address of another interface than the one naturally chosen by <a href="https://www.lifewire.com/what-is-your-ip-address-817566" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="2">connect</a>(2). This can be useful when connecting to services which use IP addresses for authentication and reconfiguration of the server is undesirable (or impossible).</p><p><strong>-c</strong></p><p>Disables the reading of the user&#39;s .telnetrc file. (See the <strong>toggle skiprc</strong> command on this man page.)</p><p><strong>-d</strong></p><p>Sets the initial value of the <strong>debug</strong> toggle to <strong>TRUE</strong></p><p><strong>-e</strong> <em>escapechar</em></p><p>Sets the initial <strong>telnet</strong> escape character to <em>escapechar</em> If <em>escapechar</em> is omitted, then there will be no escape character.</p><p><strong>-f</strong></p><p>If Kerberos V5 authentication is being used, the -<strong>f</strong> option allows the local credentials to be forwarded to the remote system.</p><p><strong>-k</strong> <em>realm</em></p><p>If Kerberos authentication is being used, the -<strong>k</strong> option requests that <strong>telnet</strong> obtain tickets for the remote host in realm <em>realm</em> instead of the remote host&#39;s realm, as determined by krb_realmofhost3.</p><p><strong>-l</strong> <em>user</em></p><p>When connecting to the remote system, if the remote system understands the<strong>ENVIRON</strong> option, then <em>user</em> will be sent to the remote system as the value for the variable USER. This option implies the -<strong>a</strong> option. This option may also be used with the<strong>open</strong> command.</p><p><strong>-n</strong> <em>tracefile</em></p><p>Opens <em>tracefile</em> for recording trace information. See the <strong>set tracefile</strong> command below.</p><p><strong>-r</strong></p><p>Specifies a user interface similar to rlogin(1). In this mode, the escape character is set to the tilde (~) character, unless modified by the -<strong>e</strong> option.</p><p><strong>-x</strong></p><p>Turns on encryption of the data stream if possible.</p><p><em>host</em></p><p>Indicates the official name, an alias, or the Internet address of a remote host.</p><p><em>port</em></p><p>Indicates a port number (address of an application). If a number is not specified, the default <strong>telnet</strong> port is used.</p><p>When in rlogin mode, a line of the form ~. disconnects from the remote host; ~ is the telnet escape character. Similarly, the line ~^Z suspends the telnet session. The line ~^] escapes to the normal telnet escape prompt.</p><p>Once a connection has been opened, <strong>telnet</strong> will attempt to enable the <strong>TELNET LINEMODE</strong>option. If this fails, <strong>telnet</strong> will revert to one of two input modes: either &#96;&#96;character at a time&#39;&#39; or &#96;&#96;old line by line&#39;&#39; depending on what the remote system supports.</p><p>When <strong>LINEMODE</strong> is enabled, character processing is done on the local system, under the control of the remote system. When input editing or character echoing is to be disabled, the remote system will relay that information. The remote system will also relay changes to any special characters that happen on the remote system, so that they can take effect on the local system.</p><p>In &#96;&#96;character at a time&#39;&#39; mode, most text typed is immediately sent to the remote host for processing.</p><p>In &#96;&#96;old line by line&#39;&#39; mode, all text is echoed locally, and (normally) only completed lines are sent to the remote host. The &#96;&#96;local echo character&#39;&#39; (initially &#96;&#96;^E&#39;&#39;) may be used to turn off and on the local echo (this would mostly be used to enter passwords without the password being echoed).</p><p>If the <strong>LINEMODE</strong> option is enabled, or if the <strong>localchars</strong> toggle is <strong>TRUE</strong> (the default for &#96;&#96;old line by line&#39;&#39;; see below), the user&#39;s <strong>quit</strong> <strong>intr</strong> and <strong>flush</strong> characters are trapped locally, and sent as <strong>TELNET</strong> protocol sequences to the remote side. If <strong>LINEMODE</strong> has ever been enabled, then the user&#39;s <strong>susp</strong> and <strong>eof</strong> are also sent as <strong>TELNET</strong> protocol sequences, and <strong>quit</strong> is sent as a<strong>TELNET ABORT</strong> instead of <strong>BREAK</strong> There are options (see <strong>toggle</strong> <strong>autoflush</strong> and <strong>toggle</strong><strong>autosynch</strong> below) which cause this action to flush subsequent output to the terminal (until the remote host acknowledges the <strong>TELNET</strong> sequence) and flush previous terminal input (in the case of <strong>quit</strong> and <strong>intr )</strong></p><p>While connected to a remote host, <strong>telnet</strong> command mode may be entered by typing the <strong>telnet</strong>&#96;&#96;escape character&#39;&#39; (initially &#96;&#96;^]&#39;&#39;). When in command mode, the normal terminal editing conventions are available. Note that the escape character will return to the command mode of the initial invocation of <strong>telnet</strong> that has the controlling terminal. Use the <strong>send escape</strong> command to switch to command mode in subsequent <strong>telnet</strong> processes on remote hosts.</p><p>The following <strong>telnet</strong> commands are available. Only enough of each command to uniquely identify it need be typed (this is also true for arguments to the <strong>mode</strong> <strong>set</strong> <strong>toggle</strong> <strong>unset</strong> <strong>slc</strong><strong>environ</strong> and <strong>display</strong> commands).</p><p><strong>auth</strong> <em>argument</em> [<em>...</em> ]</p><p>The <strong>auth</strong> command manipulates the information sent through the <strong>TELNET AUTHENTICATE</strong> option. Valid arguments for the <strong>auth</strong> command are as follows:</p><p><strong>disable</strong> <em>type</em></p><p>Disables the specified <em>type</em> of authentication. To obtain a list of available types, use the <strong>auth disable ?</strong> command.</p><p><strong>enable</strong> <em>type</em></p><p>Enables the specified <em>type</em> of authentication. To obtain a list of available types, use the <strong>auth enable ?</strong> command.</p><p><strong>status</strong></p><p>Lists the current status of the various types of authentication.</p><p><strong>close</strong></p><p>Close a <strong>TELNET</strong> session and return to command mode.</p><p><strong>display</strong> <em>argument</em> [<em>...</em> ]</p><p>Displays all, or some, of the <strong>set</strong> and <strong>toggle</strong> values (see below).</p><p><strong>encrypt</strong> <em>argument</em> [<em>...</em> ]</p><p>The <strong>encrypt</strong> command manipulates the information sent through the <strong>TELNET ENCRYPT</strong>option.</p><p>Valid arguments for the encrypt command are as follows:</p><p><strong>disable</strong> <em>type</em> <strong>[input|output]</strong></p><p>Disables the specified <em>type</em> of encryption. If you omit <strong>input</strong> and <strong>output</strong> both input and output are disabled. To obtain a list of available types, use the <strong>encrypt disable ?</strong> command.</p><p><strong>enable</strong> <em>type</em> <strong>[input|output]</strong></p><p>Enables the specified <em>type</em> of encryption. If you omit <strong>input</strong> and <strong>output</strong> both input and output are enabled. To obtain a list of available types, use the <strong>encrypt enable ?</strong> command.</p><p><strong>input</strong></p><p>This is the same as the <strong>encrypt start input</strong> command.</p><p><strong>-input</strong></p><p>This is the same as the <strong>encrypt stop input</strong> command.</p><p><strong>output</strong></p><p>This is the same as the <strong>encrypt start output</strong> command.</p><p><strong>-output</strong></p><p>This is the same as the <strong>encrypt stop output</strong> command.</p><p><strong>start [input|output]</strong></p><p>Attempts to start encryption. If you omit <strong>input</strong> and <strong>output</strong> both input and output are enabled. To obtain a list of available types, use the <strong>encrypt enable ?</strong>command.</p><p><strong>status</strong></p><p>Lists the current status of encryption.</p><p><strong>stop [input|output]</strong></p><p>Stops encryption. If you omit <strong>input</strong> and <strong>output</strong> encryption is on both input and output.</p><p><strong>type</strong> <em>type</em></p><p>Sets the default type of encryption to be used with later <strong>encrypt start</strong> or <strong>encrypt stop</strong> commands.</p><p><strong>environ</strong> <em>arguments</em> [<em>...</em> ]</p><p>The <strong>environ</strong> command is used to manipulate the variables that may be sent through the<strong>TELNET ENVIRON</strong> option. The initial set of variables is taken from the users environment, with only the <strong>DISPLAY</strong> and <strong>PRINTER</strong> variables being exported by default. The <strong>USER</strong> variable is also exported if the -<strong>a</strong> or -<strong>l</strong> options are used.<br/>Valid arguments for the <strong>environ</strong> command are:</p><p><strong>define</strong> <em>variable value</em></p><p>Define the variable <em>variable</em> to have a value of <em>value</em> Any variables defined by this command are automatically exported. The <em>value</em> may be enclosed in single or double quotes so that tabs and spaces may be included.</p><p><strong>undefine</strong> <em>variable</em></p><p>Remove <em>variable</em> from the list of environment variables.</p><p><strong>export</strong> <em>variable</em></p><p>Mark the variable <em>variable</em> to be exported to the remote side.</p><p><strong>unexport</strong> <em>variable</em></p><p>Mark the variable <em>variable</em> to not be exported unless explicitly asked for by the remote side.</p><p><strong>list</strong></p><p>List the current set of environment variables. Those marked with a <strong>*</strong> will be sent automatically, other variables will only be sent if explicitly requested.</p><p><strong>?</strong></p><p>Prints out help information for the <strong>environ</strong> command.</p><p><strong>logout</strong></p><p>Sends the <strong>TELNET LOGOUT</strong> option to the remote side. This command is similar to a<strong>close</strong> command; however, if the remote side does not support the <strong>LOGOUT</strong> option, nothing happens. If, however, the remote side does support the <strong>LOGOUT</strong> option, this command should cause the remote side to close the <strong>TELNET</strong> connection. If the remote side also supports the concept of suspending a user&#39;s session for later reattachment, the logout argument indicates that you should terminate the session immediately.</p><p><strong>mode</strong> <em>type</em></p><p><em>type</em> is one of several options, depending on the state of the <strong>TELNET</strong> session. The remote host is asked for permission to go into the requested mode. If the remote host is capable of entering that mode, the requested mode will be entered.</p><p><strong>character</strong></p><p>Disable the <strong>TELNET LINEMODE</strong> option, or, if the remote side does not understand the <strong>LINEMODE</strong> option, then enter &#96;&#96;character at a time&#39;&#39; mode.</p><p><strong>line</strong></p><p>Enable the <strong>TELNET LINEMODE</strong> option, or, if the remote side does not understand the <strong>LINEMODE</strong> option, then attempt to enter &#96;&#96;old-line-by-line&#39;&#39; mode.</p><p><strong>isig (-isig</strong> )</p><p>Attempt to enable (disable) the <strong>TRAPSIG</strong> mode of the <strong>LINEMODE</strong> option. This requires that the <strong>LINEMODE</strong> option be enabled.</p><p><strong>edit (-edit</strong> )</p><p>Attempt to enable (disable) the <strong>EDIT</strong> mode of the <strong>LINEMODE</strong> option. This requires that the <strong>LINEMODE</strong> option be enabled.</p><p><strong>softtabs (-softtabs</strong> )</p><p>Attempt to enable (disable) the <strong>SOFT_TAB</strong> mode of the <strong>LINEMODE</strong> option. This requires that the <strong>LINEMODE</strong> option be enabled.</p><p><strong>litecho (-litecho</strong> )</p><p>Attempt to enable (disable) the <strong>LIT_ECHO</strong> mode of the <strong>LINEMODE</strong> option. This requires that the <strong>LINEMODE</strong> option be enabled.</p><p><strong>?</strong></p><p>Prints out help information for the <strong>mode</strong> command.</p><p><strong>open</strong> <em>host</em> [-<strong>l</strong> <em>user</em> ] [[- ] <em>port</em> ]</p><p>Open a connection to the named host. If no port number is specified, <strong>telnet</strong> will attempt to contact a <strong>TELNET</strong> server at the default port. The host specification may be either a host name (see hosts(5)) or an Internet address specified in the &#96;&#96;dot notation&#39;&#39; (see<a href="https://www.lifewire.com/learn-how-linux-4102755" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="3">inet</a>(3)). The -<strong>l</strong> option may be used to specify the user name to be passed to the remote system via the <strong>ENVIRON</strong> option. When connecting to a non-standard port, <strong>telnet</strong> omits any automatic initiation of <strong>TELNET</strong> options. When the port number is preceded by a minus sign, the initial option negotiation is done. After establishing a connection, the file .telnetrc in the user&#39;s home directory is opened. Lines beginning with a &#96;&#96;#&#39;&#39; are comment lines. Blank lines are ignored. Lines that begin without whitespace are the start of a machine entry. The first thing on the line is the name of the machine that is being connected to. The rest of the line, and successive lines that begin with whitespace are assumed to be <strong>telnet</strong> commands and are processed as if they had been typed in manually to the <strong>telnet</strong> command prompt.</p><p><strong>quit</strong></p><p>Close any open <strong>TELNET</strong> session and exit <strong>telnet</strong> An end-of-file (in command mode) will also close a session and exit.</p><p><strong>send</strong> <em>arguments</em></p><p>Sends one or more special character sequences to the remote host. The following are the arguments which may be specified (more than one argument may be specified at a time):</p><p><strong>abort</strong></p><p>Sends the <strong>TELNET ABORT</strong> (Abort processes) sequence.</p><p><strong>ao</strong></p><p>Sends the <strong>TELNET AO</strong> (Abort Output) sequence, which should cause the remote system to flush all output <em>from</em> the remote system <em>to</em> the user&#39;s terminal.</p><p><strong>ayt</strong></p><p>Sends the <strong>TELNET AYT</strong> (Are You There) sequence, to which the remote system may or may not choose to respond.</p><p><strong>brk</strong></p><p>Sends the <strong>TELNET BRK</strong> (Break) sequence, which may have significance to the remote system.</p><p><strong>ec</strong></p><p>Sends the <strong>TELNET EC</strong> (Erase Character) sequence, which should cause the remote system to erase the last character entered.</p><p><strong>el</strong></p><p>Sends the <strong>TELNET EL</strong> (Erase Line) sequence, which should cause the remote system to erase the line currently being entered.</p><p><strong>eof</strong></p><p>Sends the <strong>TELNET EOF</strong> (End Of File) sequence.</p><p><strong>eor</strong></p><p>Sends the <strong>TELNET EOR</strong> (End of Record) sequence.</p><p><strong>escape</strong></p><p>Sends the current <strong>telnet</strong> escape character (initially &#96;&#96;^]&#39;&#39;).</p><p><strong>ga</strong></p><p>Sends the <strong>TELNET GA</strong> (Go Ahead) sequence, which likely has no significance to the remote system.</p><p><strong>getstatus</strong></p><p>If the remote side supports the <strong>TELNET STATUS</strong> command, <strong>getstatus</strong> will send the subnegotiation to request that the server send its current option status.</p><p><strong>ip</strong></p><p>Sends the <strong>TELNET IP</strong> (Interrupt Process) sequence, which should cause the remote system to abort the currently running process.</p><p><strong>nop</strong></p><p>Sends the <strong>TELNET NOP</strong> (No OPeration) sequence.</p><p><strong>susp</strong></p><p>Sends the <strong>TELNET SUSP</strong> (SUSPend process) sequence.</p><p><strong>synch</strong></p><p>Sends the <strong>TELNET SYNCH</strong> sequence. This sequence causes the remote system to discard all previously typed (but not yet read) input. This sequence is sent as <strong>TCP</strong>urgent data (and may not work if the remote system is a BSD 4.2 system -- if it doesn&#39;t work, a lower case &#96;&#96;r&#39;&#39; may be echoed on the terminal).</p><p><strong>do</strong> <em>cmd</em></p><p>Sends the <strong>TELNET DO</strong> <em>cmd</em> sequence. <em>cmd</em> can be either a decimal number between 0 and 255, or a symbolic name for a specific <strong>TELNET</strong> command. <em>cmd</em> can also be either <strong>help</strong> or <strong>?</strong> to print out help information, including a list of known symbolic names.</p><p><strong>dont</strong> <em>cmd</em></p><p>Sends the <strong>TELNET DONT</strong> <em>cmd</em> sequence. <em>cmd</em> can be either a decimal number between 0 and 255, or a symbolic name for a specific <strong>TELNET</strong> command. <em>cmd</em> can also be either <strong>help</strong> or <strong>?</strong> to print out help information, including a list of known symbolic names.</p><p><strong>will</strong> <em>cmd</em></p><p>Sends the <strong>TELNET WILL</strong> <em>cmd</em> sequence. <em>cmd</em> can be either a decimal number between 0 and 255, or a symbolic name for a specific <strong>TELNET</strong> command. <em>cmd</em> can also be either <strong>help</strong> or <strong>?</strong> to print out help information, including a list of known symbolic names.</p><p><strong>wont</strong> <em>cmd</em></p><p>Sends the <strong>TELNET WONT</strong> <em>cmd</em> sequence. <em>cmd</em> can be either a decimal number between 0 and 255, or a symbolic name for a specific <strong>TELNET</strong> command. <em>cmd</em> can also be either <strong>help</strong> or <strong>?</strong> to print out help information, including a list of known symbolic names.</p><p><strong>?</strong></p><p>Prints out help information for the <strong>send</strong> command.</p><p><strong>set</strong> <em>argument value</em></p><p><strong>unset</strong> <em>argument value</em></p><p>The <strong>set</strong> command will set any one of a number of <strong>telnet</strong> variables to a specific value or to <strong>TRUE</strong> The special value <strong>off</strong> turns off the function associated with the variable; this is equivalent to using the <strong>unset</strong> command. The <strong>unset</strong> command will disable or set to<strong>FALSE</strong> any of the specified functions. The values of variables may be interrogated with the <strong>display</strong> command. The variables which may be set or unset, but not toggled, are listed here. In addition, any of the variables for the <strong>toggle</strong> command may be explicitly set or unset using the <strong>set</strong> and <strong>unset</strong> commands.</p><p><strong>ayt</strong></p><p>If <strong>TELNET</strong> is in <strong>localchars</strong> mode, or <strong>LINEMODE</strong> is enabled, and the status character is typed, a <strong>TELNET AYT</strong> sequence (see <strong>send ayt</strong> preceding) is sent to the remote host. The initial value for the &#34;Are You There&#34; character is the terminal&#39;s status character.</p><p><strong>echo</strong></p><p>This is the value (initially &#96;&#96;^E&#39;&#39;) which, when in &#96;&#96;line by line&#39;&#39; mode, toggles between doing local echoing of entered characters (for normal processing), and suppressing echoing of entered characters (for entering, say, a password).</p><p><strong>eof</strong></p><p>If <strong>telnet</strong> is operating in <strong>LINEMODE</strong> or &#96;&#96;old line by line&#39;&#39; mode, entering this character as the first character on a line will cause this character to be sent to the remote system. The initial value of the <strong>eof</strong> character is taken to be the terminal&#39;s<strong>eof</strong> character.</p><p><strong>erase</strong></p><p>If <strong>telnet</strong> is in <strong>localchars</strong> mode (see <strong>toggle</strong> <strong>localchars</strong> below), and if <strong>telnet</strong> is operating in &#96;&#96;character at a time&#39;&#39; mode, then when this character is typed, a<strong>TELNET EC</strong> sequence (see <strong>send</strong> <strong>ec</strong> above) is sent to the remote system. The initial value for the <strong>erase</strong> character is taken to be the terminal&#39;s <strong>erase</strong> character.</p><p><strong>escape</strong></p><p>This is the <strong>telnet</strong> escape character (initially &#96;&#96;^[&#39;&#39;) which causes entry into <strong>telnet</strong>command mode (when connected to a remote system).</p><p><strong>flushoutput</strong></p><p>If <strong>telnet</strong> is in <strong>localchars</strong> mode (see <strong>toggle</strong> <strong>localchars</strong> below) and the <strong>flushoutput</strong>character is typed, a <strong>TELNET AO</strong> sequence (see <strong>send</strong> <strong>ao</strong> above) is sent to the remote host. The initial value for the <strong>flush</strong> character is taken to be the terminal&#39;s<strong>flush</strong> character.</p><p><strong>forw1</strong></p><p><strong>forw2</strong></p><p>If <strong>TELNET</strong> is operating in <strong>LINEMODE</strong> these are the characters that, when typed, cause partial lines to be forwarded to the remote system. The initial value for the forwarding characters are taken from the terminal&#39;s eol and eol2 characters.</p><p><strong>interrupt</strong></p><p>If <strong>telnet</strong> is in <strong>localchars</strong> mode (see <strong>toggle</strong> <strong>localchars</strong> below) and the <strong>interrupt</strong>character is typed, a <strong>TELNET IP</strong> sequence (see <strong>send</strong> <strong>ip</strong> above) is sent to the remote host. The initial value for the <strong>interrupt</strong> character is taken to be the terminal&#39;s <strong>intr</strong> character.</p><p><strong>kill</strong></p><p>If <strong>telnet</strong> is in <strong>localchars</strong> mode (see <strong>toggle</strong> <strong>localchars</strong> below), and if <strong>telnet</strong> is operating in &#96;&#96;character at a time&#39;&#39; mode, then when this character is typed, a<strong>TELNET EL</strong> sequence (see <strong>send</strong> <strong>el</strong> above) is sent to the remote system. The initial value for the <strong>kill</strong> character is taken to be the terminal&#39;s <strong>kill</strong> character.</p><p><strong>lnext</strong></p><p>If <strong>telnet</strong> is operating in <strong>LINEMODE</strong> or &#96;&#96;old line by line&#39;&#39; mode, then this character is taken to be the terminal&#39;s <strong>lnext</strong> character. The initial value for the <strong>lnext</strong>character is taken to be the terminal&#39;s <strong>lnext</strong> character.</p><p><strong>quit</strong></p><p>If <strong>telnet</strong> is in <strong>localchars</strong> mode (see <strong>toggle</strong> <strong>localchars</strong> below) and the <strong>quit</strong>character is typed, a <strong>TELNET BRK</strong> sequence (see <strong>send</strong> <strong>brk</strong> above) is sent to the remote host. The initial value for the <strong>quit</strong> character is taken to be the terminal&#39;s<strong>quit</strong> character.</p><p><strong>reprint</strong></p><p>If <strong>telnet</strong> is operating in <strong>LINEMODE</strong> or old line by line&#39;&#39; mode, then this character is taken to be the terminal&#39;s <strong>reprint</strong> character. The initial value for the <strong>reprint</strong>character is taken to be the terminal&#39;s <strong>reprint</strong> character.</p><p><strong>rlogin</strong></p><p>This is the rlogin escape character. If set, the normal <strong>TELNET</strong> escape character is ignored unless it is preceded by this character at the beginning of a line. This character, at the beginning of a line, followed by a &#34;.&#34; closes the connection; when followed by a ^Z it suspends the <strong>telnet</strong> command. The initial state is to disable the<strong>rlogin</strong> escape character.</p><p><strong>start</strong></p><p>If the <strong>TELNET TOGGLE-FLOW-CONTROL</strong> option has been enabled, then this character is taken to be the terminal&#39;s <strong>start</strong> character. The initial value for the <strong>start</strong>character is taken to be the terminal&#39;s <strong>start</strong> character.</p><p><strong>stop</strong></p><p>If the <strong>TELNET TOGGLE-FLOW-CONTROL</strong> option has been enabled, then this character is taken to be the terminal&#39;s <strong>stop</strong> character. The initial value for the <strong>stop</strong>character is taken to be the terminal&#39;s <strong>stop</strong> character.</p><p><strong>susp</strong></p><p>If <strong>telnet</strong> is in <strong>localchars</strong> mode, or <strong>LINEMODE</strong> is enabled, and the <strong>suspend</strong>character is typed, a <strong>TELNET SUSP</strong> sequence (see <strong>send</strong> <strong>susp</strong> above) is sent to the remote host. The initial value for the <strong>suspend</strong> character is taken to be the terminal&#39;s <strong>suspend</strong> character.</p><p><strong>tracefile</strong></p><p>This is the file to which the output, caused by <strong>netdata</strong> or <strong>option</strong> tracing being<strong>TRUE</strong> will be written. If it is set to &#96;&#96;- &#39;&#39; then tracing information will be written to standard output (the default).</p><p><strong>worderase</strong></p><p>If <strong>telnet</strong> is operating in <strong>LINEMODE</strong> or &#96;&#96;old line by line&#39;&#39; mode, then this character is taken to be the terminal&#39;s <strong>worderase</strong> character. The initial value for the<strong>worderase</strong> character is taken to be the terminal&#39;s <strong>worderase</strong> character.</p><p><strong>?</strong></p><p>Displays the legal <strong>set</strong> (<strong>unset</strong> ) commands.</p><p><strong>skey</strong> <em>sequence challenge</em></p><p>The <strong>skey</strong> command computes a response to the S/Key challenge. See skey(1) for more information on the S/Key system.</p><p><strong>slc</strong> <em>state</em></p><p>The <strong>slc</strong> command (Set Local Characters) is used to set or change the state of the special characters when the <strong>TELNET LINEMODE</strong> option has been enabled. Special characters are characters that get mapped to <strong>TELNET</strong> commands sequences (like <strong>ip</strong> or <strong>quit</strong> or line editing characters (like <strong>erase</strong> and <strong>kill )</strong> By default, the local special characters are exported.</p><p><strong>check</strong></p><p>Verify the current settings for the current special characters. The remote side is requested to send all the current special character settings, and if there are any discrepancies with the local side, the local side will switch to the remote value.</p><p><strong>export</strong></p><p>Switch to the local defaults for the special characters. The local default characters are those of the local terminal at the time when <strong>telnet</strong> was started.</p><p><strong>import</strong></p><p>Switch to the remote defaults for the special characters. The remote default characters are those of the remote system at the time when the <strong>TELNET</strong>connection was established.</p><p><strong>?</strong></p><p>Prints out help information for the <strong>slc</strong> command.</p><p><strong>status</strong></p><p>Show the current status of <strong>telnet</strong> This includes the peer one is connected to, as well as the current mode.</p><p><strong>toggle</strong> <em>arguments</em> [<em>...</em> ]</p><p>Toggle (between <strong>TRUE</strong> and <strong>FALSE</strong> various flags that control how <strong>telnet</strong> responds to events. These flags may be set explicitly to <strong>TRUE</strong> or <strong>FALSE</strong> using the <strong>set</strong> and <strong>unset</strong>commands listed above. More than one argument may be specified. The state of these flags may be interrogated with the <strong>display</strong> command. Valid arguments are:</p><p><strong>authdebug</strong></p><p>Turns on debugging information for the authentication code.</p><p><strong>autoflush</strong></p><p>If <strong>autoflush</strong> and <strong>localchars</strong> are both <strong>TRUE</strong> then when the <strong>ao</strong> or <strong>quit</strong> characters are recognized (and transformed into <strong>TELNET</strong> sequences; see <strong>set</strong> above for details), <strong>telnet</strong> refuses to display any data on the user&#39;s terminal until the remote system acknowledges (via a <strong>TELNET TIMING MARK</strong> option) that it has processed those <strong>TELNET</strong> sequences. The initial value for this toggle is <strong>TRUE</strong> if the terminal user had not done an &#34;stty noflsh&#34;, otherwise <strong>FALSE</strong> (see stty(1)).</p><p><strong>autodecrypt</strong></p><p>When the <strong>TELNET ENCRYPT</strong> option is negotiated, by default the actual encryption (decryption) of the data stream does not start automatically. The <strong>autoencrypt</strong>(<strong>autodecrypt</strong> ) command states that encryption of the output (input) stream should be enabled as soon as possible.</p><p><strong>autologin</strong></p><p>If the remote side supports the <strong>TELNET AUTHENTICATION</strong> option <strong>TELNET</strong>attempts to use it to perform automatic authentication. If the <strong>AUTHENTICATION</strong>option is not supported, the user&#39;s login name are propagated through the<strong>TELNET ENVIRON</strong> option. This command is the same as specifying <em>a</em> option on the<strong>open</strong> command.</p><p><strong>autosynch</strong></p><p>If <strong>autosynch</strong> and <strong>localchars</strong> are both <strong>TRUE</strong> then when either the <strong>intr</strong> or <strong>quit</strong>character is typed (see <strong>set</strong> above for descriptions of the <strong>intr</strong> and <strong>quit</strong> characters), the resulting <strong>TELNET</strong> sequence sent is followed by the <strong>TELNET SYNCH</strong> sequence. This procedure <em>should</em> cause the remote system to begin throwing away all previously typed input until both of the <strong>TELNET</strong> sequences have been read and acted upon. The initial value of this toggle is <strong>FALSE</strong></p><p><strong>binary</strong></p><p>Enable or disable the <strong>TELNET BINARY</strong> option on both input and output.</p><p><strong>inbinary</strong></p><p>Enable or disable the <strong>TELNET BINARY</strong> option on input.</p><p><strong>outbinary</strong></p><p>Enable or disable the <strong>TELNET BINARY</strong> option on output.</p><p><strong>crlf</strong></p><p>If this is <strong>TRUE</strong> then carriage returns will be sent as If this is <strong>FALSE</strong> then carriage returns will be send as The initial value for this toggle is <strong>FALSE</strong></p><p><strong>crmod</strong></p><p>Toggle carriage return mode. When this mode is enabled, most carriage return characters received from the remote host will be mapped into a carriage return followed by a line feed. This mode does not affect those characters typed by the user, only those received from the remote host. This mode is not very useful unless the remote host only sends carriage return, but never line feeds. The initial value for this toggle is <strong>FALSE</strong></p><p><strong>debug</strong></p><p>Toggles socket level debugging (useful only to the superuser). The initial value for this toggle is <strong>FALSE</strong></p><p><strong>encdebug</strong></p><p>Turns on debugging information for the encryption code.</p><p><strong>localchars</strong></p><p>If this is <strong>TRUE</strong> then the <strong>flush</strong> <strong>interrupt</strong> <strong>quit</strong> <strong>erase</strong> and <strong>kill</strong> characters (see <strong>set</strong>above) are recognized locally, and transformed into (hopefully) appropriate<strong>TELNET</strong> control sequences (respectively <strong>ao</strong> <strong>ip</strong> <strong>brk</strong> <strong>ec</strong> and <strong>el</strong> see <strong>send</strong> above). The initial value for this toggle is <strong>TRUE</strong> in &#96;&#96;old line by line&#39;&#39; mode, and <strong>FALSE</strong> in &#96;&#96;character at a time&#39;&#39; mode. When the <strong>LINEMODE</strong> option is enabled, the value of<strong>localchars</strong> is ignored, and assumed to always be <strong>TRUE</strong> If <strong>LINEMODE</strong> has ever been enabled, then <strong>quit</strong> is sent as <strong>abort</strong> and <strong>eof</strong> and <strong>suspend</strong> are sent as <strong>eof</strong> and<strong>susp</strong> (see <strong>send</strong> above).</p><p><strong>netdata</strong></p><p>Toggles the display of all network data (in hexadecimal format). The initial value for this toggle is <strong>FALSE</strong></p><p><strong>options</strong></p><p>Toggles the display of some internal <strong>telnet</strong> protocol processing (having to do with<strong>TELNET</strong> options). The initial value for this toggle is <strong>FALSE</strong></p><p><strong>prettydump</strong></p><p>When the <strong>netdata</strong> toggle is enabled, if <strong>prettydump</strong> is enabled the output from the<strong>netdata</strong> command will be formatted in a more user readable format. Spaces are put between each character in the output, and the beginning of any <strong>TELNET</strong>escape sequence is preceded by a &#39;*&#39; to aid in locating them.</p><p><strong>skiprc</strong></p><p>When the skiprc toggle is <strong>TRUE</strong> <strong>TELNET</strong> skips the reading of the .telnetrc file in the user&#39;s home directory when connections are opened. The initial value for this toggle is <strong>FALSE</strong></p><p><strong>termdata</strong></p><p>Toggles the display of all terminal data (in hexadecimal format). The initial value for this toggle is <strong>FALSE</strong></p><p><strong>verbose_encrypt</strong></p><p>When the <strong>verbose_encrypt</strong> toggle is <strong>TRUE</strong> <strong>telnet</strong> prints out a message each time encryption is enabled or disabled. The initial value for this toggle is <strong>FALSE</strong></p><p><strong>?</strong></p><p>Displays the legal <strong>toggle</strong> commands.</p><p><strong>z</strong></p><p>Suspend <strong>telnet</strong> This command only works when the user is using the <a href="https://www.lifewire.com/wc-linux-command-4092589" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="4">csh</a>(1).</p><p><strong>!</strong> [<em>command</em> ]</p><p>Execute a single command in a <a href="https://www.lifewire.com/why-would-you-use-shivi-variable-2196747" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="5">subshel</a>l on the local system. If <em>command</em> is omitted, then an interactive subshell is invoked.</p><p><strong>?</strong> [<em>command</em> ]</p><p>Get help. With no arguments, <strong>telnet</strong> prints a help summary. If a command is specified,<strong>telnet</strong> will print the help information for just that command.</p><p><strong>Important:</strong> Use the <em>man</em> command (<em>% man</em>) to see how a command is used on your particular computer.</p>