[BACK]Return to telnet.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / telnet

Diff for /src/usr.bin/telnet/telnet.1 between version 1.21 and 1.22

version 1.21, 2000/03/04 22:19:26 version 1.22, 2000/03/11 21:40:04
Line 68 
Line 68 
 .Oc  .Oc
 .Sh DESCRIPTION  .Sh DESCRIPTION
 The  The
 .Nm telnet  .Nm
 command  command
 is used to communicate with another host using the  is used to communicate with another host using the
 .Tn TELNET  .Tn TELNET
 protocol.  protocol.
 If  If
 .Nm telnet  .Nm
 is invoked without the  is invoked without the
 .Ar host  .Ar host
 argument, it enters command mode,  argument, it enters command mode,
Line 88 
Line 88 
 The options are as follows:  The options are as follows:
 .Bl -tag -width indent  .Bl -tag -width indent
 .It Fl 8  .It Fl 8
 Specifies an 8-bit data path.  This causes an attempt to  Specifies an 8-bit data path.
 negotiate the  This causes an attempt to negotiate the
 .Dv TELNET BINARY  .Dv TELNET BINARY
 option on both input and output.  option on both input and output.
 .It Fl E  .It Fl E
Line 103 
Line 103 
 .It Fl K  .It Fl K
 Specifies no automatic login to the remote system.  Specifies no automatic login to the remote system.
 .It Fl L  .It Fl L
 Specifies an 8-bit data path on output.  This causes the  Specifies an 8-bit data path on output.
 BINARY option to be negotiated on output.  This causes the BINARY option to be negotiated on output.
 .It Fl S Ar tos  .It Fl S Ar tos
 Sets the IP type-of-service (TOS) option for the telnet  Sets the IP type-of-service (TOS) option for the telnet
 connection to the value  connection to the value
Line 144 
Line 144 
 .It Fl c  .It Fl c
 Disables the reading of the user's  Disables the reading of the user's
 .Pa \&.telnetrc  .Pa \&.telnetrc
 file.  (See the  file.
   (See the
 .Ic toggle skiprc  .Ic toggle skiprc
 command on this man page.)  command on this man page.)
 .It Fl d  .It Fl d
Line 169 
Line 170 
 If Kerberos authentication is being used, the  If Kerberos authentication is being used, the
 .Fl k  .Fl k
 option requests that  option requests that
 .Nm telnet  .Nm
 obtain tickets for the remote host in  obtain tickets for the remote host in
 realm  realm
 .Ar realm  .Ar realm
Line 210 
Line 211 
 Indicates the official name, an alias, or the Internet address  Indicates the official name, an alias, or the Internet address
 of a remote host.  of a remote host.
 .It Ar port  .It Ar port
 Indicates a port number (address of an application).  If a number is  Indicates a port number (address of an application).
 not specified, the default  If a number is not specified, the default
 .Nm telnet  .Nm
 port is used.  port is used.
 .El  .El
 .Pp  .Pp
 When in rlogin mode, a line of the form ~.  disconnects from the  When in rlogin mode, a line of the form ~.
   disconnects from the
 remote host; ~ is the telnet escape character.  remote host; ~ is the telnet escape character.
 Similarly, the line ~^Z suspends the telnet session.  Similarly, the line ~^Z suspends the telnet session.
 The line ~^] escapes to the normal telnet escape prompt.  The line ~^] escapes to the normal telnet escape prompt.
 .Pp  .Pp
 Once a connection has been opened,  Once a connection has been opened,
 .Nm telnet  .Nm
 will attempt to enable the  will attempt to enable the
 .Dv TELNET LINEMODE  .Dv TELNET LINEMODE
 option.  option.
 If this fails,  If this fails,
 .Nm telnet  .Nm
 will revert to one of two input modes:  will revert to one of two input modes:
 either ``character at a time''  either ``character at a time''
 or ``old line by line''  or ``old line by line''
Line 236 
Line 238 
 When  When
 .Dv LINEMODE  .Dv LINEMODE
 is enabled, character processing is done on the  is enabled, character processing is done on the
 local system, under the control of the remote system.  When input  local system, under the control of the remote system.
   When input
 editing or character echoing is to be disabled, the remote system  editing or character echoing is to be disabled, the remote system
 will relay that information.  The remote system will also relay  will relay that information.
   The remote system will also relay
 changes to any special characters that happen on the remote  changes to any special characters that happen on the remote
 system, so that they can take effect on the local system.  system, so that they can take effect on the local system.
 .Pp  .Pp
Line 296 
Line 300 
 (in the case of  (in the case of
 .Ic quit  .Ic quit
 and  and
 .Ic intr  ) .  .Ic intr ) .
 .Pp  .Pp
 While connected to a remote host,  While connected to a remote host,
 .Nm telnet  .Nm
 command mode may be entered by typing the  command mode may be entered by typing the
 .Nm telnet  .Nm
 ``escape character'' (initially ``^]'').  ``escape character'' (initially ``^]'').
 When in command mode, the normal terminal editing conventions are available.  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  Note that the escape character will return to the command mode of the initial
 invocation of  invocation of
 .Nm telnet  .Nm
 that has the controlling terminal. Use the  that has the controlling terminal. Use the
 .Cm send escape  .Cm send escape
 command to switch to command mode in subsequent  command to switch to command mode in subsequent
 .Nm telnet  .Nm
 processes on remote hosts.  processes on remote hosts.
 .Pp  .Pp
 The following  The following
 .Nm telnet  .Nm
 commands are available.  commands are available.
 Only enough of each command to uniquely identify it need be typed  Only enough of each command to uniquely identify it need be typed
 (this is also true for arguments to the  (this is also true for arguments to the
Line 333 
Line 337 
 .Ic auth  .Ic auth
 command manipulates the information sent through the  command manipulates the information sent through the
 .Dv TELNET AUTHENTICATE  .Dv TELNET AUTHENTICATE
 option.  Valid arguments for the  option.
 auth command are as follows:  Valid arguments for the
   .Ic auth
   command are as follows:
 .Bl -tag -width "disable type"  .Bl -tag -width "disable type"
 .It Ic disable Ar type  .It Ic disable Ar type
 Disables the specified  Disables the specified
 .Ar type  .Ar type
 of authentication.  To  of authentication.
 obtain a list of available types, use the  To obtain a list of available types, use the
 .Ic auth disable \&?  .Ic auth disable \&?
 command.  command.
 .It Ic enable Ar type  .It Ic enable Ar type
 Enables the specified  Enables the specified
 .Ar type  .Ar type
 of authentication.  To  of authentication.
 obtain a list of available types, use the  To obtain a list of available types, use the
 .Ic auth enable \&?  .Ic auth enable \&?
 command.  command.
 .It Ic status  .It Ic status
Line 376 
Line 382 
 .It Ic disable Ar type Ic [input|output]  .It Ic disable Ar type Ic [input|output]
 Disables the specified  Disables the specified
 .Ar type  .Ar type
 of encryption.  If you  of encryption.
 omit  If you omit
 .Ic input  .Ic input
 and  and
 .Ic output ,  .Ic output ,
 both input and output  both input and output
 are disabled.  To obtain a list of available  are disabled.
 types, use the  To obtain a list of available types, use the
 .Ic encrypt disable \&?  .Ic encrypt disable \&?
 command.  command.
 .It Ic enable Ar type Ic [input|output]  .It Ic enable Ar type Ic [input|output]
 Enables the specified  Enables the specified
 .Ar type  .Ar type
 of encryption.  If you  of encryption.
 omit  If you omit
 .Ic input  .Ic input
 and  and
 .Ic output ,  .Ic output ,
 both input and output are  both input and output are
 enabled.  To obtain a list of available types, use the  enabled.
   To obtain a list of available types, use the
 .Ic encrypt enable \&?  .Ic encrypt enable \&?
 command.  command.
 .It Ic input  .It Ic input
Line 415 
Line 422 
 .Ic encrypt stop output  .Ic encrypt stop output
 command.  command.
 .It Ic start Ic [input|output]  .It Ic start Ic [input|output]
 Attempts to start encryption.  If you omit  Attempts to start encryption.
   If you omit
 .Ic input  .Ic input
 and  and
 .Ic output,  .Ic output,
 both input and output are enabled.  To  both input and output are enabled.
 obtain a list of available types, use the  To obtain a list of available types, use the
 .Ic encrypt enable \&?  .Ic encrypt enable \&?
 command.  command.
 .It Ic status  .It Ic status
 Lists the current status of encryption.  Lists the current status of encryption.
 .It Ic stop Ic [input|output]  .It Ic stop Ic [input|output]
 Stops encryption.  If you omit  Stops encryption.
   If you omit
 .Ic input  .Ic input
 and  and
 .Ic output ,  .Ic output ,
Line 587 
Line 596 
 Open a connection to the named host.  Open a connection to the named host.
 If no port number  If no port number
 is specified,  is specified,
 .Nm telnet  .Nm
 will attempt to contact a  will attempt to contact a
 .Tn TELNET  .Tn TELNET
 server at the default port.  server at the default port.
Line 602 
Line 611 
 .Ev ENVIRON  .Ev ENVIRON
 option.  option.
 When connecting to a non-standard port,  When connecting to a non-standard port,
 .Nm telnet  .Nm
 omits any automatic initiation of  omits any automatic initiation of
 .Tn TELNET  .Tn TELNET
 options.  When the port number is preceded by a minus sign,  options.
   When the port number is preceded by a minus sign,
 the initial option negotiation is done.  the initial option negotiation is done.
 After establishing a connection, the file  After establishing a connection, the file
 .Pa \&.telnetrc  .Pa \&.telnetrc
 in the  in the
 user's home directory is opened.  Lines beginning with a ``#'' are  user's home directory is opened.
 comment lines.  Blank lines are ignored.  Lines that begin  Lines beginning with a ``#'' are
 without whitespace are the start of a machine entry.  The  comment lines.
 first thing on the line is the name of the machine that is  Blank lines are ignored.
 being connected to.  The rest of the line, and successive  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  lines that begin with whitespace are assumed to be
 .Nm telnet  .Nm
 commands and are processed as if they had been typed  commands and are processed as if they had been typed
 in manually to the  in manually to the
 .Nm telnet  .Nm
 command prompt.  command prompt.
 .It Ic quit  .It Ic quit
 Close any open  Close any open
Line 681 
Line 695 
 sequence.  sequence.
 .It Ic escape  .It Ic escape
 Sends the current  Sends the current
 .Nm telnet  .Nm
 escape character (initially ``^]'').  escape character (initially ``^]'').
 .It Ic ga  .It Ic ga
 Sends the  Sends the
Line 801 
Line 815 
 The  The
 .Ic set  .Ic set
 command will set any one of a number of  command will set any one of a number of
 .Nm telnet  .Nm
 variables to a specific value or to  variables to a specific value or to
 .Dv TRUE .  .Dv TRUE .
 The special value  The special value
Line 819 
Line 833 
 .Ic display  .Ic display
 command.  command.
 The variables which may be set or unset, but not toggled, are  The variables which may be set or unset, but not toggled, are
 listed here.  In addition, any of the variables for the  listed here.
   In addition, any of the variables for the
 .Ic toggle  .Ic toggle
 command may be explicitly set or unset using  command may be explicitly set or unset using
 the  the
Line 840 
Line 855 
 sequence (see  sequence (see
 .Ic send ayt  .Ic send ayt
 preceding) is sent to the  preceding) is sent to the
 remote host.  The initial value for the "Are You There"  remote host.
   The initial value for the "Are You There"
 character is the terminal's status character.  character is the terminal's status character.
 .It Ic echo  .It Ic echo
 This is the value (initially ``^E'') which, when in  This is the value (initially ``^E'') which, when in
Line 849 
Line 865 
 echoing of entered characters (for entering, say, a password).  echoing of entered characters (for entering, say, a password).
 .It Ic eof  .It Ic eof
 If  If
 .Nm telnet  .Nm
 is operating in  is operating in
 .Dv LINEMODE  .Dv LINEMODE
 or ``old line by line'' mode, entering this character  or ``old line by line'' mode, entering this character
Line 862 
Line 878 
 character.  character.
 .It Ic erase  .It Ic erase
 If  If
 .Nm telnet  .Nm
 is in  is in
 .Ic localchars  .Ic localchars
 mode (see  mode (see
Line 870 
Line 886 
 .Ic localchars  .Ic localchars
 below),  below),
 and if  and if
 .Nm telnet  .Nm
 is operating in ``character at a time'' mode, then when this  is operating in ``character at a time'' mode, then when this
 character is typed, a  character is typed, a
 .Dv TELNET EC  .Dv TELNET EC
Line 887 
Line 903 
 character.  character.
 .It Ic escape  .It Ic escape
 This is the  This is the
 .Nm telnet  .Nm
 escape character (initially ``^['') which causes entry  escape character (initially ``^['') which causes entry
 into  into
 .Nm telnet  .Nm
 command mode (when connected to a remote system).  command mode (when connected to a remote system).
 .It Ic flushoutput  .It Ic flushoutput
 If  If
 .Nm telnet  .Nm
 is in  is in
 .Ic localchars  .Ic localchars
 mode (see  mode (see
Line 924 
Line 940 
 .Dv LINEMODE ,  .Dv LINEMODE ,
 these are the  these are the
 characters that, when typed, cause partial lines to be  characters that, when typed, cause partial lines to be
 forwarded to the remote system.  The initial value for  forwarded to the remote system.
   The initial value for
 the forwarding characters are taken from the terminal's  the forwarding characters are taken from the terminal's
 eol and eol2 characters.  eol and eol2 characters.
 .It Ic interrupt  .It Ic interrupt
 If  If
 .Nm telnet  .Nm
 is in  is in
 .Ic localchars  .Ic localchars
 mode (see  mode (see
Line 953 
Line 970 
 character.  character.
 .It Ic kill  .It Ic kill
 If  If
 .Nm telnet  .Nm
 is in  is in
 .Ic localchars  .Ic localchars
 mode (see  mode (see
Line 961 
Line 978 
 .Ic localchars  .Ic localchars
 below),  below),
 and if  and if
 .Nm telnet  .Nm
 is operating in ``character at a time'' mode, then when this  is operating in ``character at a time'' mode, then when this
 character is typed, a  character is typed, a
 .Dv TELNET EL  .Dv TELNET EL
Line 978 
Line 995 
 character.  character.
 .It Ic lnext  .It Ic lnext
 If  If
 .Nm telnet  .Nm
 is operating in  is operating in
 .Dv LINEMODE  .Dv LINEMODE
 or ``old line by line'' mode, then this character is taken to  or ``old line by line'' mode, then this character is taken to
Line 993 
Line 1010 
 character.  character.
 .It Ic quit  .It Ic quit
 If  If
 .Nm telnet  .Nm
 is in  is in
 .Ic localchars  .Ic localchars
 mode (see  mode (see
Line 1017 
Line 1034 
 character.  character.
 .It Ic reprint  .It Ic reprint
 If  If
 .Nm telnet  .Nm
 is operating in  is operating in
 .Dv LINEMODE  .Dv LINEMODE
 or old line by line'' mode, then this character is taken to  or old line by line'' mode, then this character is taken to
Line 1039 
Line 1056 
 This character, at the beginning of a line, followed by  This character, at the beginning of a line, followed by
 a "." closes the connection; when followed by a ^Z it  a "." closes the connection; when followed by a ^Z it
 suspends the  suspends the
 .Nm telnet  .Nm
 command.  The initial state is to  command.
   The initial state is to
 disable the  disable the
 .Ic rlogin  .Ic rlogin
 escape character.  escape character.
Line 1074 
Line 1092 
 character.  character.
 .It Ic susp  .It Ic susp
 If  If
 .Nm telnet  .Nm
 is in  is in
 .Ic localchars  .Ic localchars
 mode, or  mode, or
Line 1101 
Line 1119 
 .Ic option  .Ic option
 tracing being  tracing being
 .Dv TRUE ,  .Dv TRUE ,
 will be written.  If it is set to  will be written.
   If it is set to
 .Dq Fl ,  .Dq Fl ,
 then tracing information will be written to standard output (the default).  then tracing information will be written to standard output (the default).
 .It Ic worderase  .It Ic worderase
 If  If
 .Nm telnet  .Nm
 is operating in  is operating in
 .Dv LINEMODE  .Dv LINEMODE
 or ``old line by line'' mode, then this character is taken to  or ``old line by line'' mode, then this character is taken to
Line 1139 
Line 1158 
 characters when the  characters when the
 .Dv TELNET LINEMODE  .Dv TELNET LINEMODE
 option has  option has
 been enabled.  Special characters are characters that get  been enabled.
 mapped to  Special characters are characters that get mapped to
 .Tn TELNET  .Tn TELNET
 commands sequences (like  commands sequences (like
 .Ic ip  .Ic ip
 or  or
 .Ic quit  )  .Ic quit )
 or line editing characters (like  or line editing characters (like
 .Ic erase  .Ic erase
 and  and
 .Ic kill  ) .  .Ic kill ) .
 By default, the local special characters are exported.  By default, the local special characters are exported.
 .Bl -tag -width Fl  .Bl -tag -width Fl
 .It Ic check  .It Ic check
Line 1158 
Line 1177 
 character settings, and if there are any discrepancies with  character settings, and if there are any discrepancies with
 the local side, the local side will switch to the remote value.  the local side, the local side will switch to the remote value.
 .It Ic export  .It Ic export
 Switch to the local defaults for the special characters.  The  Switch to the local defaults for the special characters.
 local default characters are those of the local terminal at  The local default characters are those of the local terminal at
 the time when  the time when
 .Nm telnet  .Nm
 was started.  was started.
 .It Ic import  .It Ic import
 Switch to the remote defaults for the special characters.  Switch to the remote defaults for the special characters.
Line 1185 
Line 1204 
 and  and
 .Dv FALSE )  .Dv FALSE )
 various flags that control how  various flags that control how
 .Nm telnet  .Nm
 responds to events.  responds to events.
 These flags may be set explicitly to  These flags may be set explicitly to
 .Dv TRUE  .Dv TRUE
Line 1220 
Line 1239 
 sequences; see  sequences; see
 .Ic set  .Ic set
 above for details),  above for details),
 .Nm telnet  .Nm
 refuses to display any data on the user's terminal  refuses to display any data on the user's terminal
 until the remote system acknowledges (via a  until the remote system acknowledges (via a
 .Dv TELNET TIMING MARK  .Dv TELNET TIMING MARK
Line 1234 
Line 1253 
 done an "stty noflsh", otherwise  done an "stty noflsh", otherwise
 .Dv FALSE  .Dv FALSE
 (see  (see
 .Xr stty  1  ) .  .Xr stty 1 ) .
 .It Ic autodecrypt  .It Ic autodecrypt
 When the  When the
 .Dv TELNET ENCRYPT  .Dv TELNET ENCRYPT
 option is negotiated, by  option is negotiated, by
 default the actual encryption (decryption) of the data  default the actual encryption (decryption) of the data
 stream does not start automatically.  The  stream does not start automatically.
   The
 .Ic autoencrypt  .Ic autoencrypt
 .Pq Ic autodecrypt  .Pq Ic autodecrypt
 command states that encryption of the  command states that encryption of the
Line 1252 
Line 1272 
 .Dv TELNET AUTHENTICATION  .Dv TELNET AUTHENTICATION
 option  option
 .Tn TELNET  .Tn TELNET
 attempts to use it to perform automatic authentication.  If the  attempts to use it to perform automatic authentication.
   If the
 .Dv AUTHENTICATION  .Dv AUTHENTICATION
 option is not supported, the user's login  option is not supported, the user's login
 name are propagated through the  name are propagated through the
Line 1354 
Line 1375 
 .Ic brk ,  .Ic brk ,
 .Ic ec ,  .Ic ec ,
 and  and
 .Ic el  ;  .Ic el ;
 see  see
 .Ic send  .Ic send
 above).  above).
Line 1393 
Line 1414 
 .Dv FALSE .  .Dv FALSE .
 .It Ic options  .It Ic options
 Toggles the display of some internal  Toggles the display of some internal
 .Nm telnet  .Nm
 protocol processing (having to do with  protocol processing (having to do with
 .Tn TELNET  .Tn TELNET
 options).  options).
Line 1418 
Line 1439 
 skips the reading of the  skips the reading of the
 .Pa \&.telnetrc  .Pa \&.telnetrc
 file in the user's home  file in the user's home
 directory when connections are opened.  The initial  directory when connections are opened.
 value for this toggle is  The initial value for this toggle is
 .Dv FALSE .  .Dv FALSE .
 .It Ic termdata  .It Ic termdata
 Toggles the display of all terminal data (in hexadecimal format).  Toggles the display of all terminal data (in hexadecimal format).
Line 1430 
Line 1451 
 .Ic verbose_encrypt  .Ic verbose_encrypt
 toggle is  toggle is
 .Dv TRUE ,  .Dv TRUE ,
 .Nm telnet  .Nm
 prints out a message each time encryption is enabled or  prints out a message each time encryption is enabled or
 disabled.  The initial value for this toggle is  disabled.
   The initial value for this toggle is
 .Dv FALSE .  .Dv FALSE .
 .It Ic \&?  .It Ic \&?
 Displays the legal  Displays the legal
Line 1446 
Line 1468 
 .Xr csh 1 .  .Xr csh 1 .
 .It Ic \&! Op Ar command  .It Ic \&! Op Ar command
 Execute a single command in a subshell on the local  Execute a single command in a subshell on the local
 system.  If  system.
   If
 .Ar command  .Ar command
 is omitted, then an interactive  is omitted, then an interactive
 subshell is invoked.  subshell is invoked.
 .It Ic \&? Op Ar command  .It Ic \&? Op Ar command
 Get help.  With no arguments,  Get help.
 .Nm telnet  With no arguments,
   .Nm
 prints a help summary.  prints a help summary.
 If a command is specified,  If a command is specified,
 .Nm telnet  .Nm
 will print the help information for just that command.  will print the help information for just that command.
 .El  .El
 .Sh ENVIRONMENT  .Sh ENVIRONMENT
 .Nm telnet  .Nm
 uses at least the  uses at least the
 .Ev HOME ,  .Ev HOME ,
 .Ev SHELL ,  .Ev SHELL ,
Line 1478 
Line 1502 
 .El  .El
 .Sh HISTORY  .Sh HISTORY
 The  The
 .Nm telnet  .Nm
 command appeared in  command appeared in
 .Bx 4.2 .  .Bx 4.2 .
 .Sh NOTES  .Sh NOTES

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22