telnet
Windows CMD · Network · reference only
What it does
Telnet client: it opens an unencrypted text connection to a host and port. Today it is mostly used to check whether a port answers.
Syntax
telnet [opciones] [equipo [puerto]]
Options and parameters
equipoName or IP address of the host to connect to.
puertoTCP port to connect to; 23 by default.
-aTries to log in automatically with the current user's name.
-e carácterEscape character to return to the telnet prompt.
-f ficheroSaves the session log to a file.
-l usuarioUser name to log in with.
-t tipoTerminal type sent to the server.
Usage examples
dism /online /Enable-Feature /FeatureName:TelnetClientInstalls the Telnet client, which is not enabled by default (administrator console).
telnet servidor 25Checks whether port 25 (mail) of the server answers.
telnet 192.168.1.10 22If port 22 is open, the SSH server's greeting appears.
telnet -f registro.txt servidor 23Connects saving the session to a file.
Notes and common mistakes
- Telnet encrypts nothing, not even passwords: use SSH to manage machines.
- To leave a session press Ctrl+] and type quit.