Linux telnet Command
The Linux telnet command is used for remote login.
Running the telnet command opens a terminal session and logs into a remote host.
Syntax
telnet [-8acdEfFKLrx][-b<主机别名>][-e<脱离字符>][-k<域名>][-l<用户名称>][-n<记录文件>][-S<服务类型>][-X<认证形态>][主机名称或IP地址<通信端口>]
Parameter Description:
- -8 Allow 8-bit character data, both input and output.
- -a Try to log into the remote system automatically.
- -b
Specify the remote host name using an alias. - -c Do not read the .telnetrc file in the user's home directory.
- -d Enable debug mode.
- -e
Set the escape character. - -E Filter out escape characters.
- -f This parameter has the same effect as specifying "-F".
- -F When using Kerberos V5 authentication, this parameter uploads the local host's authentication data to the remote host.
- -k
When using Kerberos authentication, this parameter makes the remote host use the specified realm name instead of the host's domain name. - -K Do not log into the remote host automatically.
- -l
Specify the user name to log into the remote host. - -L Allow output of 8-bit character data.
- -n
Specify a file to record related information. - -r Use a user interface similar to the rlogin command.
- -S
Set the IP TOS information required for the telnet connection. - -x Use data encryption if the host supports it.
- -X
Disable the specified authentication type.
Example
Log into a Remote Host
# telnet 192.168.0.5
//Log in to the remote host with IP 192.168.0.5
Linux Command Reference