Linux telnet command

Linux 命令大全Linux Command Reference

The Linux telnet command is used for remote login.

Execute the telnet command to start a terminal session and log in to a remote host.

Syntax

telnet [-8acdEfFKLrx][-b<主机别名>][-e<脱离字符>][-k<域名>][-l<用户名称>][-n<记录文件>][-S<服务类型>][-X<认证形态>][主机名称或IP地址<通信端口>]

Parameter Description:

  • -8 Allow the use of 8-bit character data, including input and output.
  • -a Attempt to automatically log in to the remote system.
  • -b<host alias> 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<escape character> Set the escape character.
  • -E Filter out escape characters.
  • -f This parameter has the same effect as specifying the "-F" parameter.
  • -F When using Kerberos V5 authentication, adding this parameter uploads the local host's authentication data to the remote host.
  • -k<domain> When using Kerberos authentication, adding this parameter causes the remote host to use the specified realm name instead of the host's domain name.
  • -K Do not automatically log in to the remote host.
  • -l<user name> Specify the user name to log in to the remote host.
  • -L Allow output of 8-bit character data.
  • -n<record file> Specify a file to record relevant information.
  • -r Use a user interface similar to the rlogin command.
  • -S<service type> Set the IP TOS information required for the telnet connection.
  • -x If the host supports data encryption, use it.
  • -X<authentication type> Turn off the specified authentication type.

Examples

Log in to a remote host

# telnet 192.168.0.5 

//登录IP为 192.168.0.5 的远程主机

Linux 命令大全Linux Command Reference

Other Extensions