This command takes 2 arguments:
Example of use (to connect to a local web server):
telnet 127.0.0.1 80
The role of this command is:
It is a key defined by default as "^]" which allows to temporarily switch to command mode.
Note: as indicated by the command "man telnet", it is possible to redefine the escape character to the one desired by adding the switch "-e" followed by the desired character before the usual arguments. Example to define the A as escape character:
telnet -eA 127.0.0.1 80
The chosen character can no longer be sent directly to the communication channel; then we must switch to command mode by typing the chosen character and then enter the command "send escape".
To close the connection on the client side, simply switch to command mode by typing the escape character and then enter the command "close".
In addition to the standard original use, as a client of the server (telnetd) that allows to deport (without encryption and therefore without the currently required security) access to a command line interface via the network, this application will allow to "connect" a human to a server application for a protocol using a text dialogue. We can thus cite, for example, the SMTP, FTP, POP3, IDENT, HTTP protocols, ...