1TELNET(1) BSD General Commands Manual TELNET(1)
2
4 telnet — user interface to the TELNET protocol
5
7 telnet [-468EFKLacdfrx] [-X authtype] [-b hostalias] [-e escapechar]
8 [-k realm] [-l user] [-n tracefile] [host [port]]
9
11 The telnet command is used to communicate with another host using the
12 TELNET protocol. If telnet is invoked without the host argument, it
13 enters command mode, indicated by its prompt (telnet>). In this mode, it
14 accepts and executes the commands listed below. If it is invoked with
15 arguments, it performs an open command with those arguments.
16
17 If a hostname is resolved to multiple IP addresses, telnet attempts to
18 establish a connection with each address until one of them is successful
19 or until no more addresses are left.
20
21 The options are as follows:
22
23 -4 Force IPv4 address resolution.
24
25 -6 Force IPv6 address resolution.
26
27 -7 Strip 8th bit on input and output. Telnet is 8-bit clean by
28 default but doesn't send the TELNET BINARY option unless forced.
29
30 -8 Specifies an 8-bit data path. This causes an attempt to negoti‐
31 ate the TELNET BINARY option on both input and output.
32
33 -E Stops any character from being recognized as an escape character.
34
35 -F If Kerberos V5 authentication is being used, the -F option allows
36 the local credentials to be forwarded to the remote system,
37 including any credentials that have already been forwarded into
38 the local environment.
39
40 -K Specifies no automatic login to the remote system.
41
42 -L Specifies an 8-bit data path on output. This causes the BINARY
43 option to be negotiated on output.
44
45 -X atype
46 Disables the atype type of authentication.
47
48 -a Attempt automatic login. Currently, this sends the user name via
49 the USER variable of the ENVIRON option if supported by the
50 remote system. The name used is that of the current user as
51 returned by getlogin(2) if it agrees with the current user ID,
52 otherwise it is the name associated with the user ID.
53
54 -b hostalias
55 Uses bind(2) on the local socket to bind it to an aliased address
56 (see ifconfig(8) and the ``alias'' specifier) or to the address
57 of another interface than the one naturally chosen by connect(2).
58 This can be useful when connecting to services which use IP
59 addresses for authentication and reconfiguration of the server is
60 undesirable (or impossible).
61
62 -c Disables the reading of the user's .telnetrc file. (See the
63 toggle skiprc command on this man page.)
64
65 -d Sets the initial value of the deb