Monday, November 6, 2017

Telnet is missing in High Sierra

I haven't update this blog for quite some time, with a lot of good excuses, such as spending time with the kids, moving to a new team, working on the final year of my LLB degree, etc.  Still I want to find some time to share what I have learnt in my every day life.  I've just got an issue with my MBP after upgrading to High Sierra.

I love to press the upgrade/update button every time I have a chance to, and as I am so busy lately I haven't done it in the earliest possible time.  I decided to do it yesterday and I just wanted to telnet to a switch in my home to change some configuration, and I've got this unbelievable error:

-bash: telnet: command not found

The telnet client is gone!  Although there are many workarounds to get it back, such as using another client like SecureCRT, or change everything to ssh which is more secure, etc.  I still like to do it with my terminal as it is handy.  So this is what I have done to bring it back.

Download inetutils here:

I have downloaded inetutils-1.9.4.tar.gz to my MBP. 

Untar and unzip it:
tar zxf inetutils-1.9.4.tar.gz 

Build from source:
sudo make install

Verify it:
which telnet

And you should see telnet is built and installed in /usr/local/bin

And now you get your telnet back!

No comments: