![]() |
telnet in centos 8 |
Telnet command is a valuable tool for any network or system administrator. It allows for troubleshooting and manipulation of various services.
The telnet package is not installed by default on RHEL 8 / CentOS 8 server but can be easily installed by using the dnf command.
How to install Telnet on RHEL 8 / CentOS 8 / How to use telnet command to connect to a specific port.
Requirements
- RHEL 8 / CentOS 8
- Privileged access to your Linux system as root or via the sudo command
telnet Installation on Centos 8 step by step instructions
1. Use the dnf command to install the telnet package:
[root@last-instance lanangjagat]# dnf install telnet
if you facing error message that tell to be run under the root user, please login to root previllege by tiping sudo -s.
[ninxia07@last-instance ~]$ dnf install telnet
Error: This command has to be run under the root user.
[lanangjagat@last-instance ~]$ sudo -s
[sudo] password for lanangjagat:
2. Use the telnet command to connect to a host with the IP address 8.8.8.8 for example on port 53:
[ninxia07@last-instance ~]$ telnet 125.160.0.181 53
Enjoy telnet.