Telnet Cheatsheet
#
Telnet is a network protocol used for remote communication and management. It allows users to connect to remote machines and manage them using text-based commands.
Basic Commands
#
Command/Option | Example | Description |
---|
telnet <host> <port> | telnet example.com 80 | Connect to a specified host and port |
open <host> <port> | open example.com 22 | Open a connection to a host and port |
close | close | Close the current connection |
quit | quit | Exit the telnet client |
Special Commands
#
Command/Option | Example | Description |
---|
status | status | Show the current connection status |
send <data> | send Hello | Send data to the remote server |
set <option> | set crlf | Set specific options (e.g., crlf for carriage return and line feed) |
unset <option> | unset echo | Unset specific options (e.g., echo to disable local echo) |
Terminal and Session Control
#
Command/Option | Example | Description |
---|
Ctrl+] | Ctrl+] | Enter the telnet command prompt |
Ctrl+C | Ctrl+C | Interrupt the current operation |
Ctrl+R | Ctrl+R | Resume a paused connection |
File Transfer
#
Command/Option | Example | Description |
---|
zmodem | zmodem filename | Transfer files using ZMODEM protocol (if supported) |
Troubleshooting
#
Command/Option | Example | Description |
---|
`telnet | tee logfile.txt` | Log the session output to a file |
This cheatsheet provides fundamental telnet
commands for managing remote connections and interactions.