Несмотря на то, что Telnet протокол уже редко используется, что связано с отсутствием шифрования и проверки подлинности данных, у некоторых пользователей могут возникать задачи, требующие подключения с использованием клиента Telnet.
В Windows 11 и Windows 10 клиент для Telnet протокола присутствует, но отключен по умолчанию. При необходимости его можно включить одним из способов, описанных далее.
Компоненты Windows
Клиент Telnet — один из дополнительных компонентов Windows, который может быть включен, как и другие такие компоненты:
- Нажмите клавиши Win+R на клавиатуре (либо нажмите правой кнопкой мыши по кнопке «Пуск» и выберите пункт «Выполнить»), введите appwiz.cpl и нажмите Enter.
- В открывшемся окне в панели слева нажмите по пункту «Включение или отключение компонентов Windows».
- Отметьте «Клиент Telnet» в списке доступных компонентов и нажмите «Ок».
Останется дождаться, когда клиент Telnet будет установлен.
Для начала использования достаточно будет запустить командную строку, ввести команду telnet и нажать Enter.
Командная строка
Вы можете включить Telnet в командной строке, установив компонент с помощью DISM:
- Запустите командную строку от имени администратора.
- Введите команду
dism /online /Enable-Feature /FeatureName:TelnetClient
и нажмите Enter.
- Дождитесь завершения установки компонента.
Windows PowerShell
Включить компонент можно и в PowerShell: запустите Windows PowerShell или Терминал Windows от имени администратора, сделать это можно в контекстном меню кнопки «Пуск», после чего введите команду:
Enable-WindowsOptionalFeature -Online -FeatureName TelnetClient
и нажмите Enter. Через короткое время клиент Telnet будет установлен на вашем компьютере.
Завершая статью, поинтересуюсь: для какой цели вам потребовался именно Telnet клиент в наше время SSH, шифрования и защищенных протоколов? Будет отлично, если вы сможете поделиться этим в комментариях.
Telnet — это один из старейших протоколов для удаленного управления компьютерами и сетевыми устройствами. Несмотря на свою древность, Telnet все еще используется для диагностики, тестирования сетевых сервисов и управления устройствами. В этой статье мы подробно рассмотрим, что такое Telnet, как его установить и настроить в Windows 10 и Windows 11, а также как использовать эту утилиту для диагностики сети и подключения к удаленным устройствам.
Данная информация предназначена для услуг: VPS хостинг
1. Что такое Telnet и для чего он нужен
Telnet (от «Telecommunication Network») — это сетевой протокол для удаленного доступа и управления сервером или устройством через текстовый интерфейс. Telnet использует стандартный порт 23 для установления соединения и может работать как в режиме текстовых команд, так и в виде удаленной сессии.
Основные возможности Telnet:
- Удаленное управление устройствами: Telnet используется для подключения к различным устройствам, включая серверы, маршрутизаторы, коммутаторы и другие сетевые устройства, для выполнения команд или настройки параметров.
- Тестирование подключения: Telnet позволяет проверить доступность определенного порта на сервере. Это полезно для диагностики проблем с соединением и проверкой доступности сервисов.
- Диагностика и мониторинг: С помощью Telnet можно подключаться к различным портам для проверки работы сервисов, таких как HTTP (порт 80), SMTP (порт 25), FTP (порт 21) и других.
Несмотря на то, что Telnet был широко использован в 90-х годах, в современных сетях его часто заменяют более безопасные протоколы, такие как SSH (Secure Shell). Тем не менее, Telnet все еще используется для внутренних задач и тестирования, поскольку его конфигурация проста, а утилита доступна на большинстве операционных систем.
2. Установка Telnet на Windows 10 и Windows 11
2.1. Как включить Telnet в Windows 10
В последних версиях Windows, включая Windows 10, Telnet по умолчанию не установлен, однако его можно легко добавить с помощью нескольких шагов. Для этого:
-
Откройте Панель управления:
- Нажмите Пуск, введите «Панель управления» и выберите соответствующий пункт из результатов поиска.
-
Перейдите в раздел «Программы»:
- В Панели управления выберите Программы, затем Включение или отключение компонентов Windows.
-
Включите Telnet:
- Найдите в списке Telnet Client и поставьте галочку напротив этой опции. Нажмите ОК, чтобы начать установку.
-
Ожидайте завершения установки:
- Windows установит Telnet, и после завершения вы сможете использовать команду telnet через командную строку (CMD).
-
Проверьте установку:
- Откройте Командную строку (CMD) и выполните команду:
telnet
Если Telnet был успешно установлен, вы увидите командную оболочку Telnet.
- Откройте Командную строку (CMD) и выполните команду:
2.2. Как включить Telnet в Windows 11
В Windows 11 процесс установки Telnet почти идентичен Windows 10. Вот как это сделать:
- Нажмите Пуск и выберите Параметры.
- Перейдите в раздел Программы.
- Выберите Дополнительные функции.
- Прокрутите вниз и выберите Добавить функцию.
- Введите «Telnet» в поисковую строку и отметьте Telnet Client, затем нажмите Установить.
После этого вы сможете использовать Telnet в командной строке.
3. Как использовать Telnet в Windows
Теперь, когда Telnet установлен, вы можете использовать его для различных задач, таких как подключение к серверу или проверка доступности порта.
3.1. Проверка доступности порта с помощью Telnet
Одна из самых популярных функций Telnet — это тестирование доступности определенных портов на удаленных серверах. Например, чтобы проверить, доступен ли веб-сервер на порту 80, выполните команду:telnet example.com 80
Где:
- example.com — это доменное имя или IP-адрес сервера.
- 80 — это номер порта (в данном случае HTTP).
Если соединение удастся, вы увидите пустой экран или приветственное сообщение от сервера. Если порт закрыт, вы получите сообщение Connection refused или Unable to connect.
3.2. Подключение к серверу через Telnet
Telnet также позволяет подключаться к серверам и взаимодействовать с ними через командный интерфейс. Например, для подключения к удаленному серверу на порту 23 (по умолчанию Telnet использует этот порт) используйте команду:telnet example.com 23
После подключения вы попадете в консоль сервера, где сможете вводить команды в зависимости от настроек сервера.
3.3. Проверка работы других сервисов через Telnet
Кроме проверки стандартных портов, Telnet можно использовать для тестирования других сервисов. Например, для проверки работы почтового сервера (SMTP) можно подключиться к порту 25:telnet mail.example.com 25
Если сервер доступен, Telnet покажет приветственное сообщение от почтового сервера.
3.4. Использование Telnet для диагностики сетевых проблем
Telnet может помочь при диагностике сетевых проблем. Если вы подозреваете, что определенный сервис не работает, вы можете подключиться к соответствующему порту на сервере и увидеть, есть ли отклик.
Для примера, чтобы проверить, работает ли FTP-сервер, выполните команду:telnet ftp.example.com 21
Если сервер работает, вы получите сообщение приветствия, иначе — сообщение о невозможности подключения.
4. Проблемы при использовании Telnet
4.1. Что такое «Connection Refused» при подключении через Telnet?
Ошибка «Connection Refused» обычно означает, что соединение не может быть установлено. Причины могут быть следующими:
- Указанный порт закрыт или сервис не работает.
- Фаерволл блокирует доступ.
- Указанный сервер недоступен по сети.
- Неверно настроено подключение или сервер не принимает входящие соединения на указанном порту.
Для устранения этой проблемы проверьте конфигурацию фаервола и убедитесь, что нужный сервис работает на сервере.
4.2. «Telnet Connection Refused» при подключении к localhost
Если при подключении к localhost (127.0.0.1) возникает ошибка «Connection Refused», это может означать, что на локальном компьютере не настроен соответствующий сервис. Убедитесь, что нужный сервис работает на локальном хосте и прослушивает правильный порт.
4.3. Telnet и безопасность
Стоит отметить, что Telnet является небезопасным протоколом, поскольку передает данные, включая логины и пароли, в открытом виде. Это делает его уязвимым для атак «man-in-the-middle». Поэтому в современных системах Telnet часто заменяется на SSH, который использует шифрование для безопасного соединения.
5. Альтернативы Telnet
- SSH (Secure Shell) — безопасная альтернатива Telnet, которая шифрует данные и обеспечивает более высокий уровень безопасности при удаленном доступе.
- PuTTY — популярная утилита для Windows, которая поддерживает как Telnet, так и SSH для подключения к удаленным серверам.
- Netcat — инструмент для работы с сетевыми соединениями, используемый для диагностики и тестирования.
Заключение
Telnet — это старый, но полезный инструмент для диагностики сети и удаленного управления серверами. Несмотря на свою уязвимость по сравнению с более современными протоколами, такими как SSH, Telnet все еще остается востребованным для тестирования портов и проверки доступности сервисов. В этой статье мы рассмотрели, как установить и использовать Telnet в Windows 10 и 11, а также как решать типичные проблемы при его использовании.
Помните, что для работы с более важными и конфиденциальными системами рекомендуется использовать более безопасные протоколы, такие как SSH.
Introduction
Telnet serves as a protocol that enables users to remotely access and manage other computer systems over the internet or a local network. It has been around for many decades. Also, it is still employed by some systems administrators and network engineers for troubleshooting & configuring network devices.
Telnet is not enabled by default on Windows OS 10 or 11. However, it can easily be enabled by following a few straightforward steps. Under this tutorial, you will get insights into how to enable and install Telnet Windows 10 or 11. Continue reading and get all the details.
What is Telnet and How Does it Work?
As mentioned in the beginning, Telnet refers to a network protocol that permits users to connect to remote computers and devices over the internet or local network. It is employed for remote administration, troubleshooting, and testing of devices & services.
When you begin a Telnet session, the Telnet client application on your computer system designates a connection to the Telnet to Windows server application on the remote device. This connection is typically established over TCP/IP (Transmission Control Protocol/Internet Protocol), which is the standard protocol employed for communication over the Internet.
Once the connection is established, you can communicate with the remote device utilizing a command-line interface provided by the Telnet client application. You can send Telnet commands as well as receive responses from the remote device.
Further, these Telnet commands in Windows can be utilized to perform a variety of tasks like checking the status of services, configuring network settings, or executing commands on the remote device. Also, you must be aware of the fact that Telnet is not a secure protocol & transmits data, including usernames and passwords, in clear text. As a consequence, it is recommended to employ more secure protocols such as SSH (Secure Shell) for remote administration & access.
The below-mentioned are the three different ways with which you can readily enable or install Telnet on Windows. Let’s quickly get a glance at them!
Install Telnet in Windows using Command Prompt
Step 1: Press the Windows key and type “cmd” in the search box.
Step 2: Then, you need to right-click on “Command Prompt” and select “Run as administrator.”
Step 3: In the Command Prompt window, type
"dism /online /Enable-Feature /FeatureName:TelnetClient"
and press Enter.
Step 4: The Telnet client will now get installed on your Windows system.
Install Telnet on Windows Using Control Panel
Step 1: Press the Windows key and type “Control Panel” in the search box.
Step 2: Then, you have to search and click on “Control Panel” from the search results.
Step 3: Next, you must click on “Programs” in the Control Panel window.
Step 4: Click on “Turn Windows features on or off.”
Step 5: In the “Windows Features” window, scroll down and locate “Telnet Client.”
Step 6: Check the box next to “Telnet Client” and click “OK.”
Step 7: Now, by this step, you can enable Telnet on Windows.
Install Telnet with Windows Using Powershell
Step 1: Press the Windows key and type “powershell” in the search box.
Step 2: Then, you have to right-click on “Windows PowerShell” and select “Run as administrator.”
Step 3: In the PowerShell window, type
"Enable-WindowsOptionalFeature -Online -FeatureName TelnetClient"
and press Enter.
Step 4: By this step, you will get to enable windows install telnet.
Execute Telnet Command in Windows
To execute the Telnet install command in Windows, you can follow the below-mentioned easy steps:
Step 1: Open the Command Prompt or PowerShell as an administrator.
Step 2: Type “telnet” followed by the IP address or hostname of the remote device you wish to connect to, and then press Enter. For instance, in case you need to connect to a device with IP address 192.168.1.1, you would type “telnet 192.168.1.1” and press Enter.
Step 3: If the connection is successful, you will witness a message that says “Microsoft Telnet>”.
Step 4: You can now type Telnet commands to communicate with the remote device. For instance, if you wish to check the status of a service, you can type “status” followed by the name of the service.
Step 5: To exit the Telnet command in Windows, type “exit” and press Enter.
Check Telnet Client Status on Windows
For checking the Telnet client status on Windows, you can follow these steps:
Step 1: Open the Command Prompt or PowerShell as an administrator.
Step 2: Type “telnet” and then, press Enter.
Step 3: In case the Telnet client is installed and running, you will witness a message that says “Welcome to Microsoft Telnet Client” along with the version number.
Step 4: In case the Telnet client is not installed or running, you will witness a message that says “‘Telnet is not recognized as an internal or external command, operable program, or batch file.”
Step 5: You can also inspect the status of the Telnet client by entering the following command in PowerShell.
"Get-WindowsCapability -Name Telnet.Client*"
If the Telnet client is installed as well as enabled, you will see “State : Installed.” If it is not yet installed, you will witness “State : NotPresent.” Moreover, if it is installed but disabled, you will see “State : InstalledPendingReboot.”
Summing Up
Enable Telnet Windows 10 or 11 is a simple and quick procedure. It can be done in just a few steps. While Telnet is not utilized as much as it once was, it can still be an extremely helpful tool for managing network devices as well as troubleshooting connectivity issues.
By following the steps outlined in this tutorial, you can quickly enable or install Telnet for Windows and start employing it to administer your network infrastructure. However, you must note that Telnet is an unencrypted protocol. So, it can potentially disclose sensitive information to eavesdropping. Thus, you must take suitable security standards when utilizing it over a network.
Telnet is the oldest computer protocol that allows two computers to talk to each other over the Internet or local area network. However, Microsoft decided to remove the Telnet server from Windows 10 and Windows Server 2012 onwards. It’s a good step considering that Telnet doesn’t support encryption and the data go through the network in plain text. But, what if I need Telnet for educational purpose? Or what if I don’t want to configure SSL since I am dealing with a public server.
So, here are few ways to enable Telnet client as well as Telnet server on Windows version 8, 8.1, 10 or Windows Server 2012 and higher. Let’s start with the client first.
Read: Best Windows Package Manager to Auto Update Apps
How to enable Telnet Client in Windows 10
If you type in telnet in the command prompt you will get an error stating “Telnet is not recognized as an internal or external command.”. This is because telnet client is disabled in Windows 10 by default. To enable Telnet, go to the start menu and type “Turn Windows features on and off“.
On the next pop-up, browse to Telnet Client. Click the checkbox beside it and hit Ok.
Windows will take some time to install Telnet and once done, you can use the telnet command in CMD or you can fire the telnet utility from the search menu. To do that, press Win+S and type Telnet.
This will open the telnet client directly within CMD and the window should look like the one below.
How to enable Telnet Server for Windows 10
Telnet clients let you connect to other Telnet Servers. You cannot connect to your own system and fire remote commands. For that, you need a Telnet Server and unfortunately, there is no native way to enable it in Windows 10. You have to install third-party apps to start serving Telnet on port 23.
My two favorite utilities to do so are HK Telnet Server and KpyM Telnet Server. Both of them serve a different audience.
If all you want is to enable the telnet server to fire remote commands to your machine, I would suggest HK Telnet server. It is pretty easy to set up. Simply, download the app and launch the application. It is more of like a portable app rather than an exe. As soon, as you launch the application, you get a floating window.
Here, you can enter the port number where you want Telnet to accept the connections from. The UI is pretty simple with minimum options. You can set a user ID and password for the telnet login.
The app doesn’t provide an option to force SSL or encryption. If you want a bigger solution with SSH like custom login message and IP blocking then you need to get on KpyM Telnet Server. During the installation of the app, you will be prompted to start the server either at port 22 (SSH) or port 23 (telnet). In case, you are going to run telnet choose port 23 now because this is the only time you will be seeing GUI in this app.
Once you have finished installing it, you can configure further through the KTS daemon. Go to the Start menu and type “Setup kpyM Telnet SSH Server“. This will open a black dialogue box where you can configure settings like use SSL, port number, login_message, password etc. The same daemon also provides the options to start or stop the telnet server.
Closing Words
Security was one of the major concerns due to which Telnet Server was removed from Windows. It is advisable not to use telnet when you are dealing with sensitive data. However, in the case of public servers, it is okay if you don’t want to set up encryption key certificates and SSL.
Voice out your queries in the comments and I will be happy to help you out.
Also Read: 6 Best Android SSH Client You Should Try
Pratik
Pratik works as an In-house writer and video host at TechWiser. Former Programmer, Current writer. Loves tech in any form, quite optimistic about AI, data science and IoT. Talks extremely less but you betcha can geek out over anything on Twitter.
Telnet is a remote access protocol commonly used on Windows systems but can also be installed on a Mac and a Linux system using Homebrew. This protocol is fairly old and no longer used. The protocol is used over the command line. There are better tools that have been developed since Telnet was made and they have a more intuitive GUI.
Telnet isn’t obsolete. It still works but not a lot of people use it. There are GUI clients that use Telnet, and that make it infinitely easier to use but despite that, you will find there are better remote access solutions available. That said, you can still enable and use Telnet on Windows 10.
Enable Telnet on Windows 10 – Control Panel
To enable Telnet on Windows 10, follow these steps;
- Open Control Panel.
- Go to Programs.
- Select Turn Windows features on or off.
- In the window that opens, select Telnet Client.
- Click Ok and proceed with the on-screen instructions to install the client.
Enable Telnet on Windows 10 – Command Prompt
You can enable Telnet on Windows 10 via the Command Prompt.
- Open Command Prompt with admin rights.
- Run this command:
dism /online /Enable-Feature /FeatureName:TelnetClient
- When the command completes, the Telnet client will be installed on your system.
Enable Telnet on Windows 10 – PowerShell
To enable Telnet from PowerShell, follow these steps.
- Open PowerShell with admin rights.
- Run this command:
Install-WindowsFeature -name Telnet-Client
- The Telnet client will be installed.
Confirm Telnet installation
To check if Telnet is installed on your system, or to confirm that the installation was successful, follow these steps.
- Open Command Prompt with admin rights.
- Run this command:
telnet
- You should see a message that says ‘Microsoft Telnet’. If the command isn’t recognized, Telnet has not been installed.
How to use Telnet on Windows 10
The Telnet client is a command line tool. It won’t install as a GUI app and you will use it via Command Prompt. You must be familiar with commands for connecting to a remote system. Open Command Prompt with admin rights.
Connect to server
telnet hostname port
Conclusion
If you have to remotely access a non-Windows system, telnet may be a reasonably good solution however, you must know the port and the IP address, as well as the username and password for the system you’re connecting to. The system must also be set up to accept and allow a connection from Telnet. It all becomes a little tedious which is why there are tools that are much easier to use and that are cross-platform.
Fatima Wahab
Fatima has been writing for AddictiveTips for six years. She began as a junior writer and has been working as the Editor in Chief since 2014.
Fatima gets an adrenaline rush from figuring out how technology works, and how to manipulate it. A well-designed app, something that solves a common everyday problem and looks