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.
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.
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].
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With