Connect to a specified port of a host using the telnet protocol.

# To telnet to the default port of a host:
telnet <host>

# To telnet to a specific port of a host:
telnet <ip_address> <port>

# To exit a telnet session:
quit

# To emit the default escape character combination for terminating the session:
Ctrl + ]

# To start telnet with "x" as the session termination character:
telnet -e x <ip_address> <port>