telnet is not available by default on a higher version of CentOS/RHEL and MacOS. But that doesn’t mean you can’t get it installed. When you run telnet, you will notice the following error. To fix this, you need to install telnet and it’s easy.

Installing telnet on CentOS/RHEL

Log in to the server as root Run the below command to install

You can also use DNF if using CentOS 8. It’ll download the package and install and show you the complete confirmation below. Now, you can run telnet Have fun!

Installing telnet on MacOS

To install telnet on MacOS, you need to have/install Homebrew.

Launch terminal and run the below command to install Homebrew (skip if you already have)

It will take a few seconds and once done; you will see the success message.

Great, its time to install telnet using brew command

It will download and install the necessary package. Once done, rerun the telnet.

It was easy. Isn’t it? Want to build a career in Sysadmin? Check out this Linux administration online course.

telnet command not found on CentOS  RHEL  MacOS   Fixed - 87telnet command not found on CentOS  RHEL  MacOS   Fixed - 2telnet command not found on CentOS  RHEL  MacOS   Fixed - 95telnet command not found on CentOS  RHEL  MacOS   Fixed - 70telnet command not found on CentOS  RHEL  MacOS   Fixed - 50telnet command not found on CentOS  RHEL  MacOS   Fixed - 49