2.20.3.3. telnet
telnet is a utility that allows you to connect to network devices using the Telnet protocol.
Windows
Inclusion
The utility is usually present in Windows, but is disabled by default.
- Right click on the button «Start» and select «Applications and features»:
- Click «Programs and Features»:
- Click «Turn Windows features on or off»:
- Find in the list «Telnet Client», check the box next to it and click «OK»:
Usage
- Openup command line.
- Enter the command and press Enter:
telnet example.com 80
In the team instead of
example.com
specify the IP or address of the site to which you want to connect (the address must be specified withouthttp://
orhttps://
at the beginning and/
at the end), and instead of80
— the port on which the connection should be made: - Wait for the connection results. If the connection is successful, a blank screen will appear:
If the connection fails, an error message will be displayed:
To get out of telnet
press combination Ctrl+], then enter the command q
and press Enter.
macOS
Installation
- Openup terminal.
- Install the package manager Homebrewif it's not already installed:
- Enter the command and press Enter:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- In response to a request
Press RETURN to continue or any other key to abort
click Enter. - When prompted for a password, enter the password for your account on the device (when entering the password, characters will not be displayed on the screen) and press Enter.
- Wait for the installation to complete.
- Enter the command and press Enter:
brew install telnet
- Wait for the installation to complete.
Usage
- Openup terminal.
- Enter the command and press Enter:
telnet example.com 80
In the team instead of
example.com
specify the IP or address of the site to which you want to connect (the address must be specified withouthttp://
orhttps://
at the beginning and/
at the end), and instead of80
— the port on which the connection should be made: - Wait for the connection results. If the connection is successful, the following message will appear:
If the connection fails, an error message will be displayed:
To get out of telnet
press combination Ctrl+], then enter the command q
and press Enter.