Using Telnet Commands in Linux/Unix
What does Telnet refer to?
Telnet is a dated network protocol employed for establishing connections with remote systems on a TCP/IP network. It operates by connecting to servers and network devices via port 23. Now, let’s examine the application of Telnet commands.
This statement acts as a warning or clarification.
- Do not use Telnet as it is not a secure protocol and is highly discouraged. This is due to the absence of encryption in the transmitted data, making it vulnerable to interception by hackers. Instead, it is recommended to use SSH, which provides encryption and enhanced security.
Let’s explore the process of installing and utilizing the telnet protocol.
Setting up Telnet
In this section, we will guide you on how to install telnet in systems that utilize RPM and DEB.
How to install Telnet on CentOS 7 / RHEL 7
To initiate the installation procedure on the server, execute the command.
# yum install telnet telnet-server -y
# systemctl start telnet.socket
# systemctl enable telnet.socket
# firewall-cmd --permanent --add-port=23/tcp
In the end, you should refresh the firewall so that the rule becomes active.
# firewall-cmd --reload
# systemctl status telnet.socket
Making a login account
In this instance, we will generate a login user for accessing through the telnet protocol.
# adduser telnetuser
Generate a password for the user.
# passwd telnetuser
Please provide the password and confirm it. To log in to a server using the telnet command, use the syntax provided below.
$ telnet server-IP address
One possible paraphrase for “For example” is:
“An instance of this is…”
$ telnet 38.76.11.19
How to install Telnet on Ubuntu 18.04?
Executing the command in Ubuntu 18.04 will install the telnet protocol.
$ sudo apt install telnetd -y
$ systemctl status inetd
$ ufw allow 23/tcp
$ ufw reload
Using the telnet protocol for verifying the availability of ports.
Using Telnet, you can verify the openness of a particular port on a server by employing the provided syntax.
$ telnet server-IP port
To illustrate, run a command to verify the status of port 22 on a server.
$ telnet 38.76.11.19 22
Please provide the content you would like me to paraphrase.
This tutorial serves as an educational manual explaining how to utilize the telnet protocol. We strongly advise against the utilization of telnet because of the significant security vulnerabilities it presents due to the absence of encryption. When accessing remote systems, SSH is the recommended protocol as it ensures data encryption and protects against potential hacking threats.
more tutorials
Common errors that occur when using Nginx for connections.(Opens in a new browser tab)
permissions in PostgreSQL(Opens in a new browser tab)
Installation of Arch Linux(Opens in a new browser tab)
React Application Component Testing Integrate with Playwright(Opens in a new browser tab)