The Wayback Machine - https://web.archive.org/web/20240816210650/https://www.geeksforgeeks.org/difference-ssh-telnet/
Open In App

Difference between SSH and Telnet

Last Updated : 21 Mar, 2023
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

If you have been using a linux distro for a quite long time now and you are not a newbie at Linux anymore then you might have come across the terms like SSH and telnet. They are pretty similar when it comes to facility they provide but did SSH come into play when Telnet already existed? 

SSH or Secure SHell

SSH or Secure SHell is now only major protocol to access the network devices and servers over the internet. SSH was developed by SSH Communications Security Ltd., it is a program to log into another computer over a network, to execute commands in a remote machine, and to move files from one machine to another. 

  • It provides strong authentication and secure communications over insecure channels.
  • SSH runs on port 22 by default; however it can be easily changed. SSH is a very secure protocol because it shares and sends the information in encrypted form which provides confidentiality and security of the data over an un-secured network such as internet.
  • Once the data for communication is encrypted using SSH, it is extremely difficult to decrypt and read that data, so our passwords also become secure to travel on a public network.
  • SSH also uses a public key for the authentication of users accessing a server and it is a great practice providing us extreme security. SSH is mostly used in all popular operating systems like Unix, Solaris, Red-Hat Linux, CentOS, Ubuntu etc.
  • SSH protects a network from attacks such as IP spoofing, IP source routing, and DNS spoofing. An attacker who has managed to take over a network can only force ssh to disconnect. He or she cannot play back the traffic or hijack the connection when encryption is enabled.
  • When using ssh’s slogin (instead of rlogin) the entire login session, including transmission of password, is encrypted; therefore it is almost impossible for an outsider to collect passwords.

Installation of the OpenSSH client and server applications is simpler. 

To install it on your Ubuntu system, use this command at a terminal prompt:  

$sudo apt-get update
$sudo apt install openssh-client

To install the OpenSSH server application, and related support files, use this command at a terminal prompt:  

$sudo apt-get update
$sudo apt install openssh-server

And that’s pretty much it! Simple no?  

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 famous for being the original Internet when the Net first launched in 1969 and was built to be form of remote control to manage mainframe computers from distant terminals. In those original days of large mainframe computers, telnet enabled research students and professors to ‘log in’ to the university mainframe from any terminal in the building.
  • This remote login saved researchers hours of walking each semester. While telnet pales in comparison to modern networking technology, it was revolutionary in 1969, and telnet helped pave the way for the eventual World Wide Web in 1989. While telnet technology is very old, it is still in some use today by purists.
  • 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.

On a Ubuntu(a famous and my personal favorite linux distro.) We can install the telnet server with following commands:  

$sudo apt-get install xinetd telnetd

The service should be fired-up automatically once the installation is done. Your may also check the service status if required using:  

$sudo /etc/init.d/xinetd status

To Telnet an IP:  

$telnet serverip

If you would like to change its ports, you’ll need to edit /etc/services with the line:  

$telnet 23/tcp 

Once changed, restart to apply the changes with:  

$sudo /etc/init.d/xinetd restart

Right now it might looking like some tedious and wacky terminal commands but if you try to run them once on your terminal, trust me you’ll find it extremely easy! 

Just like SSH, Telnet is also apparently just a dull and boring terminal screen but with some unimaginable features. 

Differences between SSH and Telnet 

  1. SSH is more secure compared to Telnet
  2. SSH encrypts the data while Telnet sends data in plain text
  3. SSH uses a public key for authentication while Telnet does not use any authentication
  4. SSH adds a bit more overhead to the bandwidth compared to Telnet
  5. Telnet has been all but replaced by SSH in almost all uses
  6. SSH and Telnet commonly serves the same purpose
  7. SSH allows for remote command execution while Telnet does not support this feature.
  8. SSH relies on external terminal emulation software while Telnet includes built-in terminal emulation.

Lastly, there are some SSH clients, the software that you can use to setup a connection with the SSH server available for all the major operating systems and tablet operating systems.  

  • Mac OS X & Linux: built-in, available in Terminal
  • Windows: PuTTY, others
  • Android: JuiceSSH, others
  • iOS: Prompt, others

If you want to connect your Windows PC with a Linux PC then you need software called ‘PuTTY’.
After installation it’ll look a lot like this: 

PuTTy



Similar Reads

TELNET and SSH in Cisco devices
We can take access to a cisco router or switch either through a console cable or taking remote access through well known protocols Telnet or ssh (Secure Shell). Telnet and ssh are both application layer protocols used to take remote access and manage a device. 1. Telnet: As stated, Telnet is an application layer protocol which uses TCP port number
4 min read
TELNET and SSH on Adaptive Security Appliance (ASA)
Prerequisite - Adaptive security appliance (ASA) A user can take management access of a device through a console or remote access by using telnet or SSH. In the same way, ASA (Adaptive Security Appliance) CLI access can take through a console or by using Telnet or SSH and GUI access can be taken through (ASDM-a tool). 1. Telnet on ASA: Telnet is an
7 min read
Difference between TELNET and FTP
TELNET (TELecommunication NETwork) and FTP (File Transfer Protocol) both are the application layer protocol. They are connection oriented protocols as they create a connection between remote host and a server. TELNET This software links personal computer to a network server and converts data into the plain text. Basically, it is used for remote log
2 min read
Difference between SSH and SSL
1. Secure Shell (SSH) : It is a cryptographic network protocol used to access the network devices and servers over the internet. SSH protocol was developed by SSH Communications Security Ltd. SSH allows us to log in securely into another computer over a network, to execute commands in a remote machine, and to transfer files from one machine to anot
4 min read
Difference between SSH and SFTP
Prerequisite – Responsibilities of Transport Layer 1. Secure Shell (SSH) : It is a transport layer that is used for secure logins and share of information between two secured endpoints. It secures the exchange through public and private keys. Used for secure communications between an organization and a remote server. Advantages of SSH: Secure Conne
4 min read
Difference Between FTP and SSH
1. File Transfer Protocol (FTP) : It is a web standard that lets in the technique of document downloading and uploading on distinct pc structures from the internet. It includes unique sorts of record types. File Transfer Protocol or FTP, is a protocol that used to be created for the transferring of files from a remote place to a local computer, or
2 min read
Difference Between SSH Local and Remote Port Forwarding
SSH stands for "Secure Shell" or "Secure Socket Shell". It is a cryptographic network protocol that allows two computers to communicate and share the data over on insecure network such as Internet. SSH protocols protects the network from various attacks. 1. Local Port Forwarding :Local Port Forwarding is the common type of port forwarding. It is us
5 min read
How to Disable Telnet on Cisco Switches and Routers?
A computer network is a group of devices connected to each other using a transmission method such as cables etc. These devices can be computers, printers, scanners, fax machines, etc. The purpose of having a computer network is to send and receive data. stored on other devices over the network. These devices are called nodes. Telnet is a network pr
4 min read
Calling Web Service Using Curl With Telnet Connection
Prerequisite: Telnet, Curl Terminal Network as the name suggests is an application layer protocol used to connect with hosts (remote machines) over a TCP/IP network. It is based on a client-server architecture where the telnet client makes a connection with the telnet server and once the connection has been established the client (your computer) ac
3 min read
Introduction to TELNET
TELNET stands for Teletype Network. It is a client/server application protocol that provides access to virtual terminals of remote systems on local area networks or the Internet. The local computer uses a telnet client program and the remote computers use a telnet server program. In this article, we will discuss every point about TELNET. What is Te
7 min read
How to Configure SSH on Cisco Routers and Switches?
Overview :SSH is a security mechanism, which can be used to access the privilege and configuration mode of a Router and a Switch from a remote location to perform the required action. The primary aim to configure SSH is to access devices deployed in a network from a remote location so that the required configuration can be performed and resources c
3 min read
SSH Port Forwarding
SSH Port forwarding is a method used for securing TCP/IP connections. The TCP/IP packets can be tunneled through a SSH link making the data obscure thus protecting the link from attacks. SSH Port forwarding can be also seen as a form of Virtual Private Network(VPN). Types of Port Forwarding: There are 2 main types of port forwarding: Local Port For
2 min read
Introduction to SSH(Secure Shell) Keys
The SSH(Secure Shell) is an access credential that is used in the SSH Protocol. In other words, it is a cryptographic network protocol that is used for transferring encrypted data over the network. The port number of SSH is 22(Twenty-Two). It allows you to connect to a server, or multiple servers, without having to remember or enter your password f
5 min read
13 Best Practices to Manage SSH Keys
SSH key management is essential for securing remote access to systems and maintaining IT infrastructure security. Secure Shell (SSH) keys provide an essential safeguard for access to servers and encapsulate and encrypt data transmission over an unsecured network. Table of Content What are SSH Keys?Understanding SSH Keys13 Best Practices for SSH Key
8 min read
Difference between Difference Engine and Analytical Engine
Introduction: The development of computing technology has a rich history, with many inventions and innovations leading to the creation of the modern computer. Two such machines, the Difference Engine and Analytical Engine, were created by the English mathematician and inventor Charles Babbage in the 19th century. While these machines share some sim
7 min read
Difference between Voltage Drop and Potential Difference
Voltage Drop is defined as the decrease in the electric potential along the path of current that is flowing in an electric circuit. Voltage drop can be assigned at each point in the electric circuit that is proportional to the electrical elevation. The amount of energy delivered per second to any component in the circuit is equal to the voltage dro
4 min read
Difference Between Electric Potential and Potential Difference
The flow of electric charges is known as electricity, and it is responsible for producing electric current. An important word associated with electricity is electric potential. A potential difference is required to create the flow of electrons and hence, produce electricity. Before understanding the difference between electric potential and potenti
7 min read
Difference and Similarities between PHP and C
PHP is a server-side scripting language designed specifically for web development. It can be easily embedded in HTML files and HTML codes can also be written in a PHP file. The thing that differentiates PHP from a client-side language like HTML is, PHP codes are executed on the server whereas HTML codes are directly rendered on the browser. C is a
3 min read
Difference between Stop and Wait protocol and Sliding Window protocol
Introduction: Both Stop and Wait protocol and Sliding Window protocol are the techniques to the solution of flow control handling. The main difference between Stop-and-wait protocol and Sliding window protocol is that in Stop-and-Wait Protocol, the sender sends one frame and wait for acknowledgement from the receiver whereas in sliding window proto
4 min read
Similarities and Difference between Java and C++
Nowadays Java and C++ programming languages are vastly used in competitive coding. Due to some awesome features, these two programming languages are widely used in industries as well as comepetitive programming . C++ is a widely popular language among coders for its efficiency, high speed, and dynamic memory utilization. Java is widely used in the
6 min read
Difference between Time Tracking and Time and Attendance Software
Time tracking and time and attendance software are tools that help businesses track the time that employees spend on tasks and their attendance records. These tools can help businesses automate their time tracking processes, reduce errors and inaccuracies, and ensure that employees are paid accurately for the time they work. Time tracking software
4 min read
Difference Between Single and Double Quotes in Shell Script and Linux
Single quotes and double quotes are both functional in Linux while working with shell scripts or executing commands directly in the terminal but there is a difference between the way the bash shell interprets them. Single quotes: Enclosing characters in single quotation marks (') holds onto the literal value of each character within the quotes. In
3 min read
Difference Between Monophyletic and vs Paraphyletic and vs Polyphyletic
In phylogeny, a taxon is a collection of organisms. Defining taxa makes it simpler to classify and identify creatures while also helping us to understand how they relate to one another. Based on these traits, taxa are developed. While some taxa are made up of unrelated creatures, others contain related species. Taxa classify descendants and ancesto
7 min read
Difference Between Grin And Smile And Smirk
Difference Between Grin And Smile And Smirk: Emotions are expressed by facial expressions. Facial expressions are considered an as important aspect of non-verbal communication. Facial expressions consist of various different body moments such as moving lips upward or downward, movement of raising the eyebrows, and giving the wide smile while descri
6 min read
Difference between Black Box and White and Grey Box Testing
software's1. Black Box Testing :Black box testing is a type of software testing in which the functionality of the software is not known. The testing is done without the internal knowledge of the products. It is also called Functional testing. Black-box testing focuses on software’s external attributes and behavior. This type of testing looks at an
3 min read
Difference Between Store‑and‑Forward Switching and Cut‑Through Switching
Switching is a technique to transmit data between networks using switches that connect multiple LANs. Switches forward data packets based on MAC addresses, efficiently using bandwidth and reducing collisions. The three main types are: Circuit Switching: Dedicated path for the entire connection, used in traditional telephony.Message Switching: Entir
5 min read
Difference Between Structure and Class in C++
In C++, a structure works the same way as a class, except for just two small differences. The most important of them is hiding implementation details. A structure will by default not hide its implementation details from whoever uses it in code, while a class by default hides all its implementation details and will therefore by default prevent the p
4 min read
Difference between ++*p, *p++ and *++p
Predict the output of following C programs. C/C++ Code // PROGRAM 1 #include <stdio.h> int main(void) { int arr[] = {10, 20}; int *p = arr; ++*p; printf("arr[0] = %d, arr[1] = %d, *p = %d", arr[0], arr[1], *p); return 0; } C/C++ Code // PROGRAM 2 #include <stdio.h> int main(void) { int arr[] = {10, 20}; int *p = arr; *p++; pri
2 min read
Difference between sh and bash
bash and sh are two different shells of the Unix operating system. bash is sh, but with more features and better syntax. Bash is “Bourne Again SHell”, and is an improvement of the sh (original Bourne shell). Shell scripting is scripting in any shell, whereas Bash scripting is scripting specifically for Bash. sh is a shell command-line interpreter o
4 min read
Difference Between DOS and Windows
DOS: DOS stands for Disk Operating System, which is an operating system that was popular till 1995 in the IBM PCs. It is a single-tasking OS i.e., it can perform one task at a time. It is based on a command-line interface where we have to provide instruction to the computer in commands form. It runs from hard disks,floppy disk or any other storage
4 min read
three90RightbarBannerImg