AP Networking • Remote Administration • Security

SSH vs. Telnet

Compare SSH and Telnet through remote administration security, default ports, encryption, user authentication, host identity, firewall design, troubleshooting evidence, and safe verification.

Independent AP Networking resource • Updated 2026-09-13 • Includes 24 free digital flashcards
Remote-admin rule: choose SSH when the requirement includes confidentiality, integrity, protected credentials, or secure management.
Practice with Flashcards
Core comparison

SSH and Telnet solve a similar user problem but provide radically different security

Both protocols can provide remote command-line access, but the important distinction is how they protect the administrative session. Telnet sends terminal traffic without modern session encryption. SSH protects credentials and command traffic with encryption and integrity mechanisms, supports stronger authentication options, and provides host identity checks. For secure remote administration, SSH is the correct default.

Decision rule: if the requirement says secure remote administration, management confidentiality, integrity, or protected credentials, SSH is the stronger fit.
Side-by-side

SSH vs. Telnet at a glance

FeatureSSHTelnet
Default portTCP 22TCP 23
Session encryptionYesNo modern session encryption
Credential protectionProtected in encrypted sessionPlaintext exposure risk
Integrity protectionYesNo comparable protected session integrity
Public-key authenticationSupportedNot equivalent
Server identity checkHost keysNo equivalent SSH host-key model
Modern administrationPreferredLegacy/testing only

Swipe horizontally to compare SSH and Telnet.

Ports

TCP 22 and TCP 23 identify defaults, not complete security policies

SSH commonly listens on TCP 22 and Telnet on TCP 23. Those defaults help identify the intended service, but a port number does not authenticate an administrator, verify a host, or restrict which source networks may connect. Services can also be configured on different ports.

Do not confuse obscurity with security. Moving SSH to a different TCP port can reduce some automated noise, but it does not replace strong authentication, source filtering, patching, logging, or host-key validation.
Encryption

Why plaintext administration is dangerous

Telnet session

An observer who can capture the traffic may be able to read credentials, commands, and output.

SSH session

The transport protects session content from straightforward passive reading and includes integrity protections.

Telnet-style risk: username: admin password: ******** show running-config ...session content traverses network without SSH-style encryption SSH: application payload protected inside encrypted transport
Authentication

SSH supports multiple authentication methods

SSH can use password authentication, public-key authentication, and other methods depending on server configuration. Public-key authentication can reduce reliance on reusable passwords, but security still depends on protecting the private key, controlling authorized keys, and limiting who is permitted to log in.

Operational distinction: transport encryption and user authentication are related but separate controls.
Public keys

Key-based authentication changes what must be protected

The server stores or references the authorized public key. The administrator protects the private key. If the private key is copied or exposed, the security of that credential can be undermined even though SSH transport encryption remains intact.

Security checklist: protect private keys, use appropriate permissions, remove stale authorized keys, and use passphrases or hardware-backed storage where policy requires it.
Host identity

SSH verifies more than the user—it also helps verify the server

SSH clients can remember server host keys. On later connections, an unexpected key change can trigger a warning. That warning should not be ignored automatically because it may represent either a legitimate server rebuild/change or an attempt to intercept the session.

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED Network result: TCP/22 reachable ✓ Security result: stored host identity no longer matches ✕

The warning itself is evidence that transport connectivity reached an SSH endpoint; the unresolved issue is server identity trust.

Troubleshooting ladder

SSH can fail at several distinct checkpoints

1. Name resolution
Does the hostname resolve to the intended address?
2. IP path
Can the client reach the server network/address?
3. TCP transport
Can TCP connect to port 22 or the configured SSH port?
4. SSH handshake
Does the secure protocol negotiation complete?
5. Host identity
Does the presented host key match expectations?
6. User authentication
Are the account/key credentials accepted?
7. Authorization
Is the authenticated user allowed to perform the requested action?
Case 1

Hostname fails, numeric IP works

ssh admin@router1.example: hostname resolution fails ssh admin@10.10.10.1: reaches SSH service

SSH transport itself is not the first problem. DNS or name resolution is the stronger dependency.

Case 2

Server IP is reachable, but TCP/22 times out

Ping: works ✓ TCP/22: timeout ✕

Basic IP reachability is substantially proven. Investigate firewall policy, ACLs, service listener state, return path, or transport loss before replacing the cable.

Case 3

TCP/22 is refused

An active refusal often means the path reaches a device capable of rejecting the connection. A missing SSH listener or local host policy becomes stronger than “all routing is broken.”

High-information next check: verify whether the SSH daemon/service is listening on the expected interface and port.
Case 4

The SSH connection establishes, but authentication fails

Transport: connected ✓ SSH handshake: completed ✓ Authentication: Permission denied ✕

The network path and SSH service are already substantially working. Move to account state, authorized keys, password policy, authentication method, or authorization—not basic connectivity.

★ Protocol Review • SSH vs. Telnet

A five-minute warm-up for SSH vs. Telnet

Tomorrow’s opening question can pick up where this page leaves off: ask students to explain the idea in their own words and apply it to a real network. The 300 Bell Ringers give you short questions and teacher answers you can use without preparing a new starter each morning.

300 AP Networking Bell Ringers
$74.99
BUY TEACHER PACK → See what is included in the 300 Bell Ringers →
Instant Access • Full-Year Teacher Resource
Case 5

The client warns that the host key changed

Do not simply delete the known-host entry without verification. Confirm whether the device was rebuilt, replaced, rekeyed, restored from backup, or is being intercepted. The warning is a security signal, not a nuisance message.

Firewall design

Least privilege matters even when the protocol itself is encrypted

Strong policy: MgmtNet → Routers tcp/22 ALLOW StaffNet → Routers tcp/22 DENY GuestNet → Routers tcp/22 DENY Weak policy: Any → Routers tcp/22 ALLOW

SSH encryption protects the session content, but it does not eliminate the need to restrict administrative exposure.

Premium Troubleshooting Lab • 120 Missions

Let students try SSH vs. Telnet for themselves

Reading the explanation is a start. In the browser simulator, students work through a broken network, choose what to test and see whether their fix worked. It gives them another chance to use what they learned about SSH vs. Telnet.

AP Networking Browser Troubleshooting Simulator
$29.99
120 Missions • 60 Failure Patterns • Offline Copy
GET THE SIMULATOR → See all 120 missions & features
Telnet in education

Why Telnet still matters as a comparison protocol

Telnet remains useful for understanding why security requirements matter. It illustrates how two protocols can deliver similar terminal functionality while offering very different protections. It may also appear on legacy systems or in controlled lab environments.

Normal production guidance: do not use Telnet for administrative credentials across untrusted or shared networks when secure alternatives are available.
Packet-capture evidence

A capture can visually demonstrate the security difference

In a controlled lab, Telnet payload data may be readable in captured traffic. SSH application payload is encrypted. The capture does not mean SSH is invulnerable; it demonstrates that passive observation does not expose ordinary SSH session content the way plaintext Telnet can.

Protocol Exam Practice • SSH Vs Telnet

Check whether SSH vs. Telnet has really stuck

Once students have worked through this topic, give them questions mixed in with the rest of the course. The Exam Prep Vault includes practice exams, multiple-choice questions and artifact labs so they cannot rely on a chapter heading to tell them what to do.

AP Networking Complete Exam Prep Vault
$39.99
GET THE EXAM PREP VAULT → See the Exam Prep Vault contents →
4 Practice Exams • 320 MCQs • 60 Artifact Labs
Security layers

SSH security depends on more than encryption

Transport protection

Encrypt and integrity-protect the session.

Identity

Verify the server host key and authenticate the user.

Authorization

Limit what an authenticated account may do.

Network policy

Restrict which source networks can reach management services.

Evidence matrix

What each successful checkpoint proves

CheckpointWhat it provesWhat remains unresolved
DNS resolvesName resolution works for that queryTCP/22 reachability
Ping succeedsUseful IP/ICMP reachabilitySSH transport/service
TCP/22 connectsTransport to SSH port is openSSH handshake/authentication
SSH handshake succeedsSSH service is respondingUser auth/authorization
User authenticatesCredential acceptedCommand authorization/session policy

Swipe horizontally to see the evidence matrix.

Premium Evidence-Grading Copilot

Spend less time marking explanations about SSH vs. Telnet

When students explain their answer, it takes more than a right-or-wrong check to see what they understand. The Grading Copilot helps you review how they used the clues, where their explanation falls short and what feedback to give next. You make the final grading decision.

AP Networking Artifact Analysis Grading Copilot
$49.99
8 Criteria • 5 Task Modes • Offline Premium Copy
GET THE GRADING COPILOT → See the free Copilot preview
Verification

Verify secure access and prohibited access after a change

If you enable SSH on a router, test from the authorized management network, confirm the expected host key, authenticate with the intended method, and verify required commands work. Then test a prohibited source and confirm access remains blocked. If Telnet is being retired, verify TCP/23 is no longer available where policy forbids it.

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach SSH vs. Telnet as part of a planned school year

This page gives you one topic. The 180-Day Teacher Curriculum puts it into a full course plan, with daily teaching notes, student activities and checks for understanding. Use it when you need to know what comes before this lesson and what to teach next.

AP Networking Complete 180-Day Teacher Curriculum
$199.99
180 Lessons • 180 Daily Simulators • 36 Teaching Weeks
GET THE 180-DAY CURRICULUM → See 3 free curriculum examples
Strong verification: authorized SSH succeeds + unauthorized SSH fails + Telnet remains disabled/blocked if required.
Exam transfer

Answer the security requirement, not just the port number

Instead of writing “SSH uses port 22,” write: “Use SSH for secure remote administration because it encrypts the session and provides integrity and host identity mechanisms. Restrict TCP/22 to authorized management sources and verify both successful authorized access and blocked unauthorized access.”

Strong answer pattern: requirement → protocol → transport/port → security reason → access control → verification.
Free digital flashcards

24 SSH vs. Telnet digital flashcards

Practice default ports, encryption, plaintext risk, authentication, public keys, host keys, SSH troubleshooting stages, firewall policy, packet-capture evidence, and secure verification.

All SSH/Telnet cards
Click or press Enter/Space to reveal.
Tie the protocol to the security requirement and the troubleshooting evidence.
0 seen•24 cards
Continue studying

Connect remote administration to ports, firewalls, and artifact analysis