Menu

Difference between Telnet and SSH

Being a system administrator, it is one of our key responsibilities to manage & monitor the production & enterprise servers, upgrading their kernel, installing latest available software packages & patches and carrying out other server routine tasks on daily basis while accessing the servers remotely.

So there are actually 2 major protocols that are used to access the servers:

Telnet

SSH

Let’s discuss both one by one:

Telnet

Telnet is the joint abbreviation of Telecommunications and Networks and it is a networking protocol best known for UNIX platform.

Telnet uses the port 23 and it was designed specifically for local area networks.

Telnet is not a secure communication protocol because it does not use any security mechanism and transfers the data over network/internet in a plain-text form including the passwords and so any one can sniff the packets to get that important information.

There are no authentication policies & data encryption techniques used in telnet causing huge security threat that is why telnet is no longer used for accessing network devices and servers over public network.

The best use of telnet is to check the status of any specific service on a remote host. For example, if we want to check the status of Apache web service which runs on port 80 on our local server, it can be done as:

After opening the file, search for Port which should be commented by default like shown below:

#Port 22

Un-comment it and change the port like I’ve changed it to 10089

Port 10089

Save the file and quit and give a reset to the SSH daemon using the below command:

service sshd restart

We can also disable the root access of the server making a little modification in the same file searching the below parameter:

#PermitRootLogin yes

Un-comment it and replace “yes” with “no”

PermitRootLogin no

Conclusion:

These are the very basic security tips for a Linux server, we will definitely discuss the important Linux Security Hardening tips in our upcoming article. The famous tools to access the servers via Telnet or SSH are Putty, MTPutty and Secure CRT. SSH is dominant so far, it is also used to access Cisco devices as well.