How to Use Linux Telnet Command

2

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

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058919 255 How to Use Linux Telnet Command

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:

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058919 218 How to Use Linux Telnet Command

Reload the ufw the usage of the command:

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058919 190 How to Use Linux Telnet 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:

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058920 967 How to Use Linux Telnet Command

Type the username to login, it is going to ask for the password:

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058920 877 How to Use Linux Telnet Command

Once it’s effectively log in, we’re working the opposite system remotely:

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058920 735 How to Use Linux Telnet Command

Now, we’re logged in, let’s create the textual content report in that(john’s) system:

$ echo “This is Linuxhint” > myfile

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058921 876 How to Use Linux Telnet Command

To show the contents of the report the usage of the cat command:

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058921 565 How to Use Linux Telnet Command

We too can listing down the listing of alternative system the usage of the ls command:

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058921 117 How to Use Linux Telnet Command

We too can connect with the telnet shell the usage of the command:

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058921 658 How to Use Linux Telnet Command

In the telnet server, we will to find out the assist through typing “h” letter:

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058922 219 How to Use Linux Telnet Command

Exit the telnet shell:

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058922 342 How to Use Linux Telnet Command

To go out the system, use the command:

How to Use Linux Telnet Command How to Use Linux Telnet Command 1642058923 438 How to Use Linux Telnet 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.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More