Use the telnet command to establish a telnet session with a remote system.
Anyone can execute the telnet command.
Enter the telnet command as shown below.
telnet {hostname|host_ip_addr}
[tcp_port]
|
Command Field |
Description |
|
hostname |
Specifies the name of the host to which you want a telnet session. DNS must be configured on the device/terminal server to use this option. |
|
host_ip_addr |
Specifies the IP address of the host to which you want a telnet session. |
|
tcp_port |
Specifies the TCP port assigned the telnet application on the remote system. The default is 23, the port typically used for telnet. |
In this example, the telnet command establishes a telnet session using a host name. The default TCP port (23) is used.
telnet host1
In this example, the telnet command establishes a telnet session using an IP address. The default TCP port (23) is used.
telnet 192.192.150.28
In this example, a user on the LAN initiates a telnet connection to port 4 on a PortServer named host1.
telnet host-1 2004