Blog • SHM Soft

Telnet vs SSH: Remote Access Protocols Compared

Telnet and SSH both let you log into a router or server from far away. The difference is simple: Telnet sends your password in plain text for anyone to read, and SSH encrypts everything. Here is the full comparison.

Published 28 November 2026 • SHM Soft

Network engineers rarely sit in front of the routers they manage. The routers are in data centres, in branch offices, and in wiring closets, and the engineer is somewhere else entirely. To configure them, engineers connect remotely, over the network, using a protocol that gives them a command line on the faraway device.

There are two classic protocols for this: Telnet and SSH. They do the same job, but they do it very differently. One is old and insecure, and the other is the standard everyone uses today. In this guide, we compare Telnet vs SSH, explain how each one works, and show you which one to use.

SHM Soft Telnet vs SSH networking guide

Telnet vs SSH: The Short Answer

Telnet and SSH both give you remote command-line access to a device. Telnet was built in 1969, it runs on TCP port 23, and it sends everything, including your username and password, in plain text. SSH was built in 1995, it runs on TCP port 22, and it encrypts everything, including the login, the commands, and the output. Short version: Telnet is the old, insecure way, and SSH is the secure way that replaced it.

The difference matters because of what happens on the wire. If you log into a router with Telnet, anyone on the same network with a packet sniffer can read your password as easily as reading a postcard. If you log in with SSH, the same sniffer sees only scrambled data. That is the whole comparison in one sentence, and it is why Telnet should never be used on a network you care about.

Both protocols work at the Application layer of the OSI model, Layer 7. Both give you a text-based terminal on the remote device. The user experience is almost identical: you type commands, and the device answers. The difference is entirely in what happens between your keyboard and the device, and that difference is everything.

What is Telnet?

Telnet stands for Teletype Network, and it is one of the oldest protocols on the internet. It was designed in 1969, when networks were small, trusted, and full of people who knew each other. Security was not a concern, because the network was a research tool, not a public utility. Telnet does one simple thing: it takes what you type, sends it to the remote device, and shows you what comes back. It does that well, and it does nothing else.

Telnet has no encryption, no real authentication beyond a username and password, and no way to check that the device you connected to is really the device you wanted. It also uses port 23, and that port number cannot be changed. In the early days, that did not matter. Today, it means Telnet is trivially easy to attack, and it is blocked by default on most networks and firewalls.

What is SSH?

SSH stands for Secure Shell, and it was created in 1995 by Tatu Ylönen, after a password-sniffing attack on his own university network. It does the same job as Telnet, but it encrypts the whole session. Your username, your password, your commands, and the device's answers are all scrambled before they leave your computer, and only the device at the other end can unscramble them. A packet sniffer sees nothing but noise.

SSH also checks identity in both directions. The server proves who it is with a host key, so you can tell if you are talking to the real device or an impostor. You prove who you are with a password, or better, with a public key, which means your password never travels across the network at all. With key-based login, you unlock a private key on your own computer, and the server checks the matching public key. Nothing secret ever crosses the wire.

SSH does more than remote login. It can copy files securely with SCP and SFTP, it can forward ports through an encrypted tunnel, and it can run commands on a remote machine from a script. It is the tool that holds modern server management together, and it is the default on every Linux server, every Cisco device, and every cloud platform in the world.

Telnet vs SSH: Side by Side

Here is the comparison that matters. Telnet uses port 23, SSH uses port 22. Telnet sends data in plain text, SSH encrypts it. Telnet has no host verification, SSH verifies the server with a host key. Telnet only supports passwords, SSH supports passwords and public keys. Telnet can be used by anyone listening on the network, SSH cannot. Telnet is insecure by design, SSH is secure by design. Telnet is obsolete for device management, SSH is the industry standard.

On reliability, both are the same. On features, SSH wins easily, because it does file transfer and port forwarding as well as remote login. There is no category where Telnet is the better choice for managing a device, except one: the device does not support SSH. And if a device does not support SSH in 2026, it is time to replace it.

The security difference is not theoretical. Password sniffing is one of the oldest attacks on networks, and it still works against Telnet today. An attacker on the same Wi-Fi network, or on any network between you and the device, can capture a Telnet login in seconds. The same attacker gets nothing from SSH. That is why every security standard, every audit, and every certification exam tells you the same thing: disable Telnet, use SSH.

How to Use SSH on a Cisco Device

Setting up SSH on a Cisco router or switch takes a few steps, and they are worth learning, because they appear on the CCNA exam. First, give the device a hostname and a domain name, because SSH needs both to create its keys. Second, generate the keys with the crypto key generate rsa command. Third, set up a username and password, or better, a username with a public key. Fourth, tell the VTY lines, which are the remote login lines, to accept only SSH, with the transport input ssh command. That last step is the important one: it blocks Telnet completely.

After that, you can test it. Connect with an SSH client, like the built-in client on Linux and Mac, or PuTTY on Windows, and log in. You should get a command prompt, just like Telnet, but with the padlock of encryption behind it. If you try Telnet, the device should refuse the connection, which is exactly what you want.

One more detail: SSH needs a little more setup than Telnet, because of the keys and the domain name, and that is why beginners sometimes skip it. Do not skip it. The extra two minutes of setup are the difference between a secure device and an open door. If you are studying, practise the SSH configuration until you can do it from memory. It is a CCNA topic, and it is a skill you will use on every network you ever manage.

SHM Soft Telnet vs SSH remote access guide

When Is Telnet Ever Acceptable?

Almost never, but there are two narrow exceptions. The first is a device that does not support SSH, and cannot be replaced yet. If you must use Telnet on such a device, do it only from a trusted, isolated management network, never over the internet, and plan the replacement. The second is a public service with no login, like a weather server or a text adventure game, where there is nothing secret to steal. In both cases, the rule is the same: if a password crosses the network, it must be encrypted, and Telnet cannot do that.

Some people use Telnet as a testing tool, and that is fine, as long as no login is involved. Pointing Telnet at a web server's port 80 to see if it answers is a legitimate diagnostic trick. It sends no password, so there is nothing to steal. But the moment you type a username, you should be on SSH. If you remember one rule from this article, make it that one: passwords never travel in plain text.

For a business network, the policy should be simple and written down: SSH only, Telnet disabled on every device, and anyone who finds Telnet enabled reports it. That policy is easy to check, easy to enforce, and it closes one of the oldest holes in networking. If you need help locking down a business network, our access control lists guide explains another layer of the same job, and our IT support and consultancy team can review your devices and close the gaps.

Watch on YouTube: Telnet and SSH - CompTIA Security+ SY0-401: 1.4

SSH keys: the better way to log in

Passwords are the weakest part of SSH, because people pick bad ones and reuse them. Public key authentication fixes that. You generate a pair of keys: a public key that you put on the server, and a private key that stays on your computer, protected by a passphrase. When you connect, the server challenges your computer, and your computer answers using the private key, without ever sending it. An attacker who captures the traffic gets nothing useful, and an attacker who steals the public key gets nothing either, because the public key alone cannot log in.

Frequently Asked Questions

What is the difference between Telnet and SSH?

Both give you remote command-line access, but Telnet sends everything in plain text on port 23, while SSH encrypts everything on port 22. SSH also verifies the server and supports public key login. Telnet is insecure, and SSH is the standard.

Why is Telnet insecure?

Because it sends usernames, passwords, commands, and output in plain text, with no encryption. Anyone who can capture the traffic on the network can read all of it, including your password.

What port does SSH use?

SSH uses TCP port 22 by default, but you can change it. Telnet uses TCP port 23, and that cannot be changed. Changing the SSH port is sometimes done to reduce automated login attempts, but it is not a substitute for strong authentication.

Can I still use Telnet?

Only for testing a service that needs no login, or for a very old device that does not support SSH, on an isolated network. For managing your own devices, use SSH. Disable Telnet wherever you can.

What is PuTTY?

PuTTY is a free SSH and Telnet client for Windows. It lets you connect to remote devices, save connection settings, and use SSH keys. On Linux and Mac, SSH is built into the terminal, so no extra software is needed.

Conclusion

Telnet and SSH do the same job, but they belong to different eras. Telnet was built when networks were small and trusted, and it sends everything in plain text. SSH was built when the internet became hostile, and it encrypts everything, verifies the server, and supports key-based login. There is no reason to manage a device with Telnet today.

Use SSH, use keys where you can, and disable Telnet on every device you manage. It takes a few minutes to set up, and it closes one of the oldest and simplest holes in networking.

Related articles:

What Is the OSI Model? The 7 Layers Explained

The seven layers of networking, and why Telnet and SSH both live at Layer 7.

Access Control Lists (ACLs) in Cisco Networking Explained

How to filter traffic on a router, and how ACLs protect remote access.

What Is BGP? Border Gateway Protocol Explained

The protocol that routes between networks on the internet, and how it differs from interior protocols.

Want a clear price for your project?

Tell us what you need and we will send a free quote with no hidden charges.

Get a Free Quote