How to Use Linux Telnet Command
In Linux, the telnet command is used to determine the connections between other machines.This command permits us to regulate the far off units the usage of the CLI (command-line interface). It makes use of TCP port 23 which is assigned to the telnet protocol.
In this write-up, we can speak about the set up and use of the telnet instructions in Linux.
How to put in the telnet application in Linux
The telnet protocol can also be put in within the distributions of Linux. There are other instructions for putting in the telnet, in CentoOS, Fedora, and RHEL, it may be put in the usage of the command:
$ yum set up telnet telnet-server -y
In Ubuntu and Debian primarily based distributions it may be put in the usage of the command:
$ sudo apt set up telnetd -y
After the set up is done, take a look at the standing of telnet protocol the usage of the systemctl command:
$ sudo systemctl standing inetd
The telnet protocol is put in and is in operating standing. We know that it makes use of port 23, so we can permit port 23 the usage of the ufw command:
Reload the ufw the usage of the command:
How to make use of the telnet command in Linux
To connect with the units we want the IP deal with of the actual system and likewise be sure the telnet protocol is put in in that system as neatly and port 23 is enabled. In our case, the IP deal with of the system to which we wish to attach is 192.168.18.135, we can run the command:
Type the username to login, it is going to ask for the password:
Once it’s effectively log in, we’re working the opposite system remotely:
Now, we’re logged in, let’s create the textual content report in that(john’s) system:
$ echo “This is Linuxhint” > myfile
To show the contents of the report the usage of the cat command:
We too can listing down the listing of alternative system the usage of the ls command:
We too can connect with the telnet shell the usage of the command:
In the telnet server, we will to find out the assist through typing “h” letter:
Exit the telnet shell:
To go out the system, use the command:
Conclusion
The telnet command is used to be in contact with different machines remotely the usage of the command line. It works very similar to SSH however the distinction between telnet and SSH is that the ideas communicated throughout the telnet isn’t encrypted and will simply be hacked through the hackers. In this newsletter, we’ve mentioned the set up of the telnet command and connecting to different machines the usage of the telnet command.