Anyone know how to use TELNET ??

Brazil
May 12, 2007 11:19pm CST
A lot of people tell me that Telnet is really useful. But How can I use it? I know all windows come with it, and what's its based purpose? Thank you guys...
1 person likes this
1 response
@dhoni787 (11)
• India
6 Jun 07
The telnet command is used to communicate with another host using the TELNET protocol. If telnet is invoked without the host argument, it enters command mode, indicated by its prompt (telnet ) In this mode, it accepts and executes the commands listed below. If it is invoked with arguments, it performs an open command with those arguments. The options are as follows: -8 Specifies an 8-bit data path. This causes an attempt to negotiate the TELNET BINARY option on both input and output. -E Stops any character from being recognized as an escape character. -F If Kerberos V5 authentication is being used, the -F option allows the local credentials to be forwarded to the remote system, including any credentials that have already been forwarded into the local environment. -K Specifies no automatic login to the remote system. -L Specifies an 8-bit data path on output. This causes the BINARY option to be negotiated on output. -X atype Disables the atype type of authentication. -a Attempt automatic login. Currently, this sends the user name via the USER variable of the ENVIRON 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. -b hostalias Uses bind(2) on the local socket to bind it to an aliased address (see ifconfig(8) and the ``alias'' specifier) or to the address of another interface than the one naturally chosen by connect(2). This can be useful when connecting to services which use IP addresses for authentication and reconfiguration of the server is undesirable (or impossible). -c Disables the reading of the user's .telnetrc file. (See the toggle skiprc command on this man page.) -d Sets the initial value of the debug toggle to TRUE -e escapechar Sets the initial telnet escape character to escapechar If escapechar is omitted, then there will be no escape character. -f If Kerberos V5 authentication is being used, the -f option allows the local credentials to be forwarded to the remote system. -k realm If Kerberos authentication is being used, the -k option requests that telnet obtain tickets for the remote host in realm realm instead of the remote host's realm, as determined by krb_realmofhost3. -l user When connecting to the remote system, if the remote system understands the ENVIRON option, then user will be sent to the remote system as the value for the variable USER. This option implies the -a option. This option may also be used with the open command. -n tracefile Opens tracefile for recording trace information. See the set tracefile command below. -r Specifies a user interface similar to rlogin(1). In this mode, the escape character is set to the tilde (~) character, unless modified by the -e option. -x Turns on encryption of the data stream if possible. host Indicates the official name, an alias, or the Internet address of a remote host. port Indicates a port number (address of an application). If a number is not specified, the default telnet port is used. 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. Once a connection has been opened, telnet will attempt to enable the TELNET LINEMODE option. If this fails, telnet will revert to one of two input modes: either ``character at a time'' or ``old line by line'' depending on what the remote system supports. When LINEMODE 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. In ``character at a time'' mode, most text typed is immediately sent to the remote host for processing. In ``old line by line'' mode, all text is echoed locally, and (normally) only completed lines are sent to the remote host. The ``local echo character'' (initially ``^E'') may be used to turn off and on the local echo (this would mostly be used to enter passwords without the password being echoed). If the LINEMODE option is enabled, or if the localchars toggle is TRUE (the default for ``old line by line''; see below), the user's quit intr and flush characters are trapped locally, and sent as TELNET protocol sequences to the remote side. If LINEMODE has ever been enabled, then the user's susp and eof are also sent as TELNET protocol sequences, and quit is sent as a TELNET ABORT instead of BREAK There are options (see toggle autoflush and toggle autosynch below) which cause this action to flush subsequent output to the terminal (until the remote host acknowledges the TELNET sequence) and flush previous terminal input (in the case of quit and intr )