cheat.sheets:telnet
# telnet
# User interface to the TELNET protocol for bidirectional text communication.
# Connect to a remote host on a specified port
telnet hostname port
# Open a telnet session without specifying a port (default to port 23)
telnet hostname
# Open a telnet session with option for terminal type
telnet -l username hostname
# Interrupt a running command or return to the telnet prompt
Ctrl + ] (Escape sequence, type this combo while in a telnet session)
# Display telnet’s internal help
telnet help
# Telnet quit command to exit the session
quit (Type this command within the telnet session to exit)
# Set or show telnet options
telnet set option (Enter this within the telnet command line to configure options)
# Send special telnet sequence to the host
send set_sequence_name (Enter this within a telnet session to send specific sequences such as break)
tldr:telnet
# telnet
# Connect to a specified port of a host using the telnet protocol.
# More information: <https://manned.org/telnet>.
# Telnet to the default port of a host:
telnet host
# Telnet to a specific port of a host:
telnet ip_address port
# Exit a telnet session:
quit
# Emit the default escape character combination for terminating the session:
Ctrl + ]
# Start telnet with "x" as the session termination character:
telnet -e x ip_address port
# Telnet to Star Wars animation:
telnet towel.blinkenlights.nl
$
cheat.sh