Несмотря на то, что 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
- Активация протокола
- Способ 1: «Панель управления»
- Способ 2: «Командная строка»
- Применение утилиты
- Вопросы и ответы: 0
Что такое Telnet
Telnet-протокол представляет собой утилиту для подключения с удаленным портам компьютера и установки канала связи. В нынешнее время она довольно редко используется, что обусловлено отсутствием шифрования и проверки подлинности данных, но иногда возникают задачи, которые требуют подключения через протокол Telnet.
Говоря простым языком, программное обеспечение является клиентом с текстовым интерфейсом и позволяет выполнить быстрое подключение одного устройства к другому через интернет. Обычно вся процедура проводится при помощи специальных команд в консоли Windows 10, принцип работы самой утилиты заключается в том, что администратор одного компьютера дает разрешение на подключение к нему другого, а командами Telnet можно получить доступ к программам и различных службам на удаленном компьютере. Так, например, софт используется для разнообразных задач типа получения доступа к файлам, электронной почте, базам данных.
Активация протокола
По умолчанию протокол Telnet в Windows 10 выключен, поэтому перед тем, как им воспользоваться, потребуется его включить. Сделать это можно двумя способами: через соответствующий раздел с программами и компонентами классической «Панели управления» либо через консоль. Оба варианта мы разберем более развернуто ниже.
Способ 1: «Панель управления»
Клиент Telnet – это дополнительный программный компонент операционной системы, поэтому его можно активировать таким же образом, как и некоторые другие аналогичные элементы системы:
- Найдите «Панель управления» в главном меню или воспользуйтесь строкой системного поиска.
- Выберите отображение разделов в виде крупных или мелких значков для удобства, затем нажмите на пункт «Программы и компоненты».
Также сработает и запрос
appwiz.cpl
, введенный в диалоговом окне «Выполнить» (одновременное нажатие на «Win + R»), для выполнения которого нужно нажать на «Enter». - На панели слева в открывшемся окне кликните по строке «Включение или отключение компонентов Windows».
- В списке компонентов найдите «Клиент Telnet» и отметьте его галочкой в чекбоксе, а для подтверждения настроек кликните по кнопке «ОК».
После этого необходимые программные компоненты установятся в систему, и можно будет полноценно пользоваться клиентом.
Способ 2: «Командная строка»
Есть еще один метод активировать программный компонент Telnet, но для этого потребуется знать команду, выполненную с помощью утилиты DISM:
- Запустите консоль «Командная строка» от имени администратора. Для этого также можно прибегнуть к строке поиска, введя запрос
cmd
и выбрав соответствующий тип запуска. - Вставьте команду
dism /online /Enable-Feature /FeatureName:TelnetClient
в интерфейсе консоли и нажмите на клавишу «Enter» для ее выполнения.
Включить клиент можно и через другую консоль, реализованную в Windows 10, – «Windows PowerShell». Запустить ее потребуется также с расширенными правами, но структура команды, введенной в ее интерфейсе, будет несколько отличаться:
Enable-WindowsOptionalFeature -Online -FeatureName TelnetClient
.
На этом активация Telnet завершена – останется дождаться, пока необходимые программные компоненты инсталлируются, после чего можно переходить к его применению.
Применение утилиты
Сетевой протокол запускается исключительно через «Командную строку», поэтому для применения программы потребуется ее открыть, причем от имени администратора. Для начала надо запустить саму утилиту Telnet, затем можно переходить к подключению к серверу и использованию других возможностей:
- В окне «Командной строки» введите запрос
telnet
и выполните его, чтобы запустить утилиту. - Далее нужно подключиться к серверам, для этого используйте команду
open serveraddress [port]
, введя все данные без ошибок. Если все успешно выполнено, отобразится окно, где нужно вписать имя и пароль пользователя. - После можно пользоваться всеми функциями утилиты. Ее синтаксис в рамках «Командной строки» довольно обширный, поэтому разбирать каждый запрос нет смысла. Более подробная информация о командах Telnet представлена на официальном сайте Microsoft на странице технического справочника по ссылке ниже.
Перейти на официальный сайт Microsoft
Мы рассмотрим только несколько простых примеров, чтобы продемонстрировать, как работает протокол Telnet на компьютере с Windows 10. Например, чтобы узнать доступность сервера, потребуется использовать команду
telnet 192.168.1.243
, где под цифрами подразумевается IP-адрес или имя хоста.Фактически данная команда является аналогом запроса
ping
, но приведенный выше запрос часто используется, чтобы убедиться, что сервер воспринимает команды. - Аналогичным образом можно проверить доступность порта на удаленном сервере. Для этого можно выполнить команду
$ telnet localhost 123
или$ telnet localhost 22
. - Можно активировать режим отладки для контроля работы утилиты. В этом случае вместе с командой вводится префикс -d:
$ sudo telnet -d localhost 22
. - Когда нужно передать команды утилите Telnet, которая располагается именно на удаленном сервере, а не на локальном компьютере, используйте специальный символ ^[ для отображения приглашения ввода Telnet. Чтобы ввести этот символ, нажмите на клавиши «Ctrl + [». Далее для просмотра доступных команд выполните запрос
?
, а для того, чтобы узнать статус подключения, есть командаstatus
или простоst
. В текущей сессии, скорее всего, будут и другие команды, доступные для ввода. - Одно из самых распространенных применений утилиты Telnet – это подключение через консоль к определенному сайту для тестирования и просмотра данных, которые были переданы сервером. Введите
$ telnet site.ru 80
, где сочетание «site.ru» замените на адрес нужного ресурса. Как только подключение будет выполнено, используйте/GET
, чтобы вернуть заголовки и саму страницу, которые отображаются в браузере. - Чтобы завершить сеанс использования протокола Telnet, выполните
quit
.
Как видно, спектр возможностей утилиты Telnet довольно обширный, и с помощью нее можно выполнять множество операций с удаленным компьютером, сайтом или сервисом. Но для полного понимания рекомендуем ознакомиться с синтаксисом и особенностями применения, исходя из руководства на сайте Microsoft.
Также следует отметить, что подключение по Telnet не всегда безопасно, поскольку третьи лица или утилиты извне смогут получить доступ ко всем операциям и данным, которыми обмениваются устройства и открывают их друг для друга. Как уже говорилось, это обусловлено отсутствием шифрования и встроенной защиты. Если без утилиты не обойтись, то не забывайте правильно завершать сеанс.
Наша группа в TelegramПолезные советы и помощь
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 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
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.