This cheat sheet is intended to be a quick reminder for the main concepts involved in using the command line program telnet and assumes you already understand its usage.
Standard usage (i.e. a host to connect can be by ip or by domain)
$ telnet [options] target [port]
communicate over http protocol
$ telnet example.com 80
create traceroute file
$ telnet example.com 80
Option | Example | Operation |
---|---|---|
-E |
telnet -E target port | To treat all characters as data and prevent dropping to command |
-e |
telnet -e '^C' host | Set a custom escape character instead of default ^] |
-l |
telnet -l alice host | Pass a username to the remote host |
-d |
telnet -d host | Enable debug mode |
-l |
telnet -n host | Creates a trace file |