telnet.1

来自「Linux下的socks的程序源程序,用于socks的代理服务」· 1 代码 · 共 1,513 行 · 第 1/3 页

1
1,513
字号
.\" Copyright (c) 1983, 1990 The Regents of the University of California..\" All rights reserved..\".\" Redistribution and use in source and binary forms are permitted provided.\" that: (1) source distributions retain this entire copyright notice and.\" comment, and (2) distributions including binaries display the following.\" acknowledgement:  ``This product includes software developed by the.\" University of California, Berkeley and its contributors'' in the.\" documentation or other materials provided with the distribution and in.\" all advertising materials mentioning features or use of this software..\" Neither the name of the University nor the names of its contributors may.\" be used to endorse or promote products derived from this software without.\" specific prior written permission..\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE..\".\"     @(#)telnet.1	6.13 (Berkeley) 7/28/90.\".Dd July 28, 1990.Dt TELNET 1.Os BSD 4.2.Sh NAME.Nm telnet.Nd User interface to the .Li TELNETprotocol.Sh SYNOPSIS.Nm telnet.Op Fl 8.Op Fl E.Op Fl K.Op Fl L.Op Fl X Ar atype.Op Fl a.Op Fl c.Op Fl d.Op Fl e Ar escapechar.Op Fl k Ar realm.Op Fl l Ar user.Op Fl n Ar tracefile.Op Fl r.Op Fl x.Ob.Ar host.Op port.Oe.Sh DESCRIPTIONThe.Nm telnetcommandis used to communicate with another host using the .Li TELNETprotocol.If.Nm telnetis invoked without the.Ar hostargument, it enters command mode,indicated by its prompt.Pq Nm telnet\&> .In this mode, it accepts and executes the commands listed below.If it is invoked with arguments, it performs an.Ic opencommand with those arguments..PpOptions:.Tw Fl.Tp Fl 8Use an eight bit data path.  This will causean attempt to negotiate the BINARY option on bothinput and output..Tp Fl EThe.Fl Eoption stops any character from being recognized as an escape character..Tp Fl KDo not attempt to do automatic login to theremote system..Tp Fl LUse an eight bit data path on output.This causes the BINARY option to be negotiatedon output..Tp Cx Fl X.Cx \&\ \&.Ar atype.CxDisable the.Ar atypetype of authentication..Tp Fl aAttempt automatic login.Currently, this sends the user name via the USER variableof the ENVIRON option if supported by the remote system.The name used is that of the current user as returned by.Xr getlogin 2if it agrees with the current user ID,otherwise it is the name associated with the user ID..Tp Fl cThe.Fl cflag disables the reading of the users .Pa \&.telnetrc.(See the.Ic toggle.Ic skiprccommand below.).Tp Fl dSets the initial value of the.Ic debugtoggle to.Li TRUE.Tp Cx Fl e.Cx \&\ \&.Ar escape char.CxSets the initial.Nm.B telnetescape character to.Ar escape char.If.Ar escape charis ommitted, thenthere will be no escape character..Tp Cx Fl k.Cx \&\ \&.Ar realm.CxIf Kerberos authentication is being used, the.Fl koption requests that.Nm telnetobtain tickets for the remote host in realm.Ar realminstead of the remote host'srealm as determined by.Xr krb_realmofhost 3  ..Tp Cx Fl l.Cx \&\ \&.Ar user.CxWhen connecting to the remote system, if the remote systemunderstands the ENVIRON option, then.Ar userwill be sent to the remote system as the value for the variable USER.This option implies the.Fl aoption.This option may also be used with the.Ic opencommand..Tp Cx Fl n.Cx \&\ \&.Ar tracefile.CxOpens.Ar tracefilefor recording trace information.See the.Ic set tracefilecommand below..Tp Fl rUse a user interface similar to.Xr rlogin 1  .In this mode, the escape character is set to the tilde (``~'')character, unless modified by the.Fl eflag..Tp Fl xTurn on encryption of the data stream, if possible..Tp Ar hostIndicates the official name, an alias, or the Internet addressof a remote host..Tp Ar portIndicates a port number (address of an application) or name.  If a number isnot specified, the default.Nm telnetport is used.Port names are mapped to port numbers via the/etc/servicesfile.Normally when a port number is specified,.Nm telnetwill not send out any initial.Li TELNEToption negotiation.If the port number/name is preceded bya minus sign, thenthe initial.Li TELNEToption negotiation will be sent..Tp.PpWhen in.Nm rloginmode, a line of the form ``~.'' disconnects from the remote host,where ``~'' is the.Nmescape character.Similarly, the line ``~^Z'' will suspend the.Nm telnetsession.The line ``~^]'' will escape to the normal.Nm telnetescape prompt..PpOnce a connection has been opened,.Nm telnetwill attempt to enable the.Li TELNET LINEMODEoption.If this fails, then.Nm telnetwill revert to one of two input modes:either \*(Lqcharacter at a time\*(Rqor \*(Lqold line by line\*(Rqdepending on what the remote system supports..PpWhen .Li LINEMODEis enabled, character processing is done on thelocal system, under the control of the remote system.  When inputediting or character echoing is to be disabled, the remote systemwill relay that information.  The remote system will also relaychanges to any special characters that happen on the remotesystem, so that they can take effect on the local system..PpIn \*(Lqcharacter at a time\*(Rq mode, mosttext typed is immediately sent to the remote host for processing..PpIn \*(Lqold line by line\*(Rq mode, all text is echoed locally,and (normally) only completed lines are sent to the remote host.The \*(Lqlocal echo character\*(Rq (initially \*(Lq^E\*(Rq) may be usedto turn off and on the local echo(this would mostly be used to enter passwordswithout the password being echoed)..PpIf the .Li LINEMODEoption is enabled, or if the.Ic localcharstoggle is TRUE (the default for \*(Lqold line by line\*(Lq; see below),the user's.Ic quit  ,.Ic intr ,and.Ic flushcharacters are trapped locally, and sent as.Li TELNETprotocol sequences to the remote side.If .Li LINEMODEhas ever been enabled, then the user's.Ic suspand.Ic eofare also sent as.Li TELNETprotocol sequences,and.Ic quitis sent as a .Li TELNET ABORTinstead of .Li BREAKThere are options (see.Ic toggle.Ic autoflushand.Ic toggle.Ic autosynchbelow)which cause this action to flush subsequent output to the terminal(until the remote host acknowledges the.Li TELNETsequence) and flush previous terminal input(in the case of.Ic quitand.Ic intr  ) ..PpWhile connected to a remote host,.Nm telnetcommand mode may be entered by typing the.Nm telnet\*(Lqescape character\*(Rq (initially \*(Lq^\*(Rq).When in command mode, the normal terminal editing conventions are available..PpThe following.Nm telnetcommands are available.Only enough of each command to uniquely identify it need be typed(this is also true for most of the arguments to thecommands)..Pp.Tw Ic.\" ######## BEGIN the "auth" command.Tp Cx Ic auth.Cx \&\ \&.Ar arguments....CxThe.Ic authcommand is used to manipulate thethe information that my be sent through the.Li TELNET AUTHENTICATEoption..brValid arguments for the \fBauth\fP command are:.Tw Fl.Tp Cx Ic disable.Cx \&\ \&.Ar type.CxDisable the specified.Ar typeof authentication.A list of available types can be gotten bydoing an.Ic auth.Ic disable.Ic ?command..Tp Cx Ic enable.Cx \&\ \&.Ar type.CxEnable the specified.Ar typeof authentication.A list of available types can be gotten bydoing an.Ic auth.Ic enable.Ic ?command..Tp Ic statusList the current status of the varioustypes of authentication..Tp.\" ######## END the "auth" command.\".\" ######## BEGIN the "close" command.Tp Ic closeClose a.Li TELNETsession and return to command mode..\" ######## END the "close" command.\".\" ######## BEGIN the "display" command.Tp Cx Ic display.Cx \&\ \&.Ar argument ....CxDisplays all, or some, of the.Ic setand.Ic togglevalues (see below)..\" ######## END the "display" command.\".\" ######## BEGIN the "encrypt" command.Tp Cx Ic encrypt.Cx \&\ \&.Ar arguments....CxThe.Ic encryptcommand is used to manipulate thethe information that my be sent through the.Li TELNET ENCRYPToption..brValid arguments for the \fBencrypt\fP command are:.Tw Fl.Tp Cx Ic disable.Cx \&\ \&.Ar type.Op input|output.CxDisable the specified.Ar typeof encryption.If the.Op inputor.Op outputis not specified, both input and output will be disabled.A list of available types can be gotten bydoing an.Ic encrypt.Ic disable.Ic ?command..Tp Cx Ic enable.Cx \&\ \&.Ar type.Op input|output.CxEnable the specified.Ar typeof encryption.If.Op inputor.Op outputis not specified, both input and output will be enabled.A list of available types can be gotten bydoing an.Ic encrypt.Ic enable.Ic ?command..Tp Cx Ic type.Cx \&\ \&.Ar type.CxSet the default type of encryption to be used with later.Ic encrypt startor.Ic encrypt stopcommands..Tp Cx Ic start.Op input|output.CxAttempt to start encryption.If.Op inputor.Op outputis not specified, encryption of both input and output will be attempted.The.Ic encrypt typecommand must have been used to set the encryption type..Tp Cx Ic stop.Op input|output.CxStop encryption.If.Op inputor.Op outputis not specified, encryption will be stopped on both input and output..Tp Ic inputThis is the same as the.Ic encrypt start inputcommand..Tp Ic -inputThis is the same as the.Ic encrypt stop inputcommand..Tp Ic outputThis is the same as the.Ic encrypt start outputcommand..Tp Ic -outputThis is the same as the.Ic encrypt stop outputcommand..Tp Ic statusList the current status of encryption..Tp.\" ######## END the "encrypt" command.\".\" ######## BEGIN the "environ" command.Tp Cx Ic environ.Cx \&\ \&.Ar arguments....CxThe.Ic environcommand is used to manipulate thethe variables that my be sent through the.Li TELNET ENVIRONoption.The initial set of variables is taken from the usersenvironment, with only the.Ev DISPLAYand.Ev PRINTERvariables being exported by default.The.Ev USERvariable is also exported if the.Fl aor.Fl loptions are used..brValid arguments for the \fBenviron\fP command are:.Tw Fl.Tp Cx Ic define.Cx \&\ \&.Ar variable value.CxDefine the variable.Ar variableto have a value of.Ar value.Any variables defined by this command are automatically exported.The.Ar valuemay be enclosed in single or double quotes so

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?