Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not use command telnet in git bash

I try to use the command telnet in Git Bash, but it shows this error:

bash:telnet: command not found

My operating system is Windows 10. Any idea is appreciated.

like image 550
Adam Lyu Avatar asked Jul 02 '16 01:07

Adam Lyu


People also ask

Why telnet command is not working?

You have to go to Control Panel>Programs>Turn Windows features on or off. Then, check "Telnet Client" and save the changes. You might have to wait about a few minutes before the change could take effect. I had to reboot after activation, so if it's still not working, try a reboot.

How do I start telnet from command line?

For Windows users:Go to Start > Run (or press Windows button+R). In the Run window type cmd and click OK to open the Command prompt. Type in telnet [RemoteServer] [Port].


1 Answers

For a programmatic solution, you can use Deployment Image Servicing and Management (DISM)

In windows command prompt, you can use dism to enable features like this:

C:\> dism /online /Enable-Feature /FeatureName:TelnetClient

Or in Powershell, with the DISM Module use Enable-WindowsOptionalFeature like this:

PS> Enable-WindowsOptionalFeature FeatureName:TelnetClient
like image 108
KyleMit Avatar answered Sep 20 '22 07:09

KyleMit