October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Disable Telnet and Replace It With SSH on a Network Device

Configure SSH and prove access works before disabling Telnet. Learn what to check, how Cisco IOS/IOS XE examples work, and how to verify the change without assuming one command fits every device.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure and test SSH before you block Telnet: confirm that SSH reaches the intended management interface, authenticates the intended account, and grants the right access. Then deny Telnet on every applicable remote-access line or disable the device’s separate Telnet service, and test that a fresh Telnet connection is refused. The commands depend on the device family and software release; Cisco IOS/IOS XE examples are not universal.

Why replace Telnet with SSH?

Telnet is an older remote-terminal protocol. Its management traffic is sent in cleartext, which can expose sensitive information; Cisco recommends SSH for device management. Telnet’s protocol is specified in RFC 854, while Cisco discusses the security difference in its SSH configuration guidance and IOS hardening guidance.

As an Amazon Associate I earn from qualifying purchases.

Replacing Telnet is not just a client-side change. A device acting as an SSH server needs platform support, host identity and keys, a working authentication configuration, and a management interface or remote-access line that permits SSH. The available commands, algorithms, and defaults vary by model and release.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Before changing remote access

  • Record the vendor, exact model and software release, management address, remote-access line range, and current local-account or AAA behavior.
  • Consult the command reference for that exact platform. Cisco notes that SSH crypto support depends on platform, release, and licensing; IOS syntax should not be pasted into NX-OS, Catalyst small-business CLI, Junos, or another vendor’s CLI.
  • Preserve the current configuration through your organization’s normal process. Keep an approved recovery route, such as local console access where appropriate, in case remote access fails.
  • Confirm which administrator subnets or jump hosts should reach the management plane. If you use a source access list, make sure it permits those sources before tightening the rule.

Cisco cautions that configuration commands can affect a live network. Its IOS/IOS XE SSH guide also describes platform-specific support and access restrictions.

#1 Best Overall
Sale
TP-Link ER7206, Multi-WAN Professional Wired Gigabit VPN Router
  • 【Flexible Port Configuration】1 Gigabit SFP WAN Port + 1 Gigabit WAN Port + 2 Gigabit WAN/LAN Ports plus1 Gigabit LAN Port. Up to four WAN ports optimize bandwidth usage through one device.
  • 【Increased Network Capacity】Maximum number of associated client devices – 150,000. Maximum number of clients – Up to 700.
  • 【Integrated into Omada SDN】Omada’s Software Defined Networking (SDN) platform integrates network devices including gateways, access points & switches with multiple control options offered – Omada Hardware controller, Omada Software Controller or Omada cloud-based controller(Contact TP-Link for Cloud-Based Controller Plan Details). Standalone mode also applies.
  • 【Cloud Access】Remote Cloud access and Omada app brings centralized cloud management of the whole network from different sites—all controlled from a single interface anywhere, anytime.
  • 【SDN Compatibility】For SDN usage, make sure your devices/controllers are either equipped with or can be upgraded to SDN version. SDN controllers work only with SDN Gateways, Access Points & Switches. Non-SDN controllers work only with non-SDN APs. For devices that are compatible with SDN firmware, please visit TP-Link website.

Configure SSH and authentication first

On Cisco IOS/IOS XE, the following abbreviated example shows the general sequence: set a hostname and domain, configure an account or AAA, enable SSH version 2, generate the host key, and permit SSH on the relevant VTY lines. Replace every placeholder and confirm the syntax against the device’s release documentation.

configure terminal
hostname <device-name>
username <admin> privilege 15 secret <strong-secret>
ip domain name <domain>
ip ssh version 2
crypto key generate rsa general-keys modulus <platform-approved-size>
line vty 0 <last-vty>
login local
transport input ssh
end

This example uses local login; environments using centralized AAA need the matching authentication configuration instead. Use an RSA key size supported by the device and your security policy. Cisco’s hardening guidance uses 2048 bits or stronger as examples and notes that 4096 bits may be an option when supported and performance impact is acceptable. Do not treat older, weaker key examples as a current baseline.

Rank #2
Sale
ASUS RT-AX1800S Dual Band WiFi 6 Extendable Router, Subscription-Free Network Security, Parental Control, Built-in VPN, AiMesh Compatible, Gaming & Streaming, Smart Home
  • New-Gen WiFi Standard – WiFi 6(802.11ax) standard supporting MU-MIMO and OFDMA technology for better efficiency and throughput.Antenna : External antenna x 4. Processor : Dual-core (4 VPE). Power Supply : AC Input : 110V~240V(50~60Hz), DC Output : 12 V with max. 1.5A current.
  • Ultra-fast WiFi Speed – RT-AX1800S supports 1024-QAM for dramatically faster wireless connections
  • Increase Capacity and Efficiency – Supporting not only MU-MIMO but also OFDMA technique to efficiently allocate channels, communicate with multiple devices simultaneously
  • 5 Gigabit ports – One Gigabit WAN port and four Gigabit LAN ports, 10X faster than 100–Base T Ethernet.
  • Commercial-grade Security Anywhere – Protect your home network with AiProtection Classic, powered by Trend Micro. And when away from home, ASUS Instant Guard gives you a one-click secure VPN.

Cisco’s guidance says, “When configuring SSH, ensure that SSHv2 is enabled, as it provides stronger encryption and significantly better security than SSHv1.” See Cisco’s SSH configuration guide for IOS/IOS XE details, including local or AAA authentication, key setup, and VTY access controls.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some device families use separate server controls

On Cisco Catalyst 1200, the CLI guide documents ip ssh server to enable its SSH server and no ip telnet server to disable its Telnet server. These are family-specific commands, not substitutes to try on an unrelated device. See the Catalyst 1200 CLI guide for that platform’s syntax.

Rank #3
NETGEAR Nighthawk WiFi 6 Router (RAX36) – Router Only, AX3000 3 Gbps Wireless Speed – Dual-Band Gigabit Internet – Covers 2,000 sq. ft., 25 Devices – Built-in VPN, USB 3.0, Gaming
  • Coverage up to 2,000 sq. ft. for up to 25 devices
  • Ultrafast AX3000 speeds up to 3Gbps with WiFi 6 technology for uninterrupted streaming, HD video gaming, and web conferencing
  • This router does not include a built-in cable modem. A separate cable modem (with coax inputs) is required for internet service.
  • Connects to your existing cable modem and replaces your WiFi router. Compatible with any internet service provider up to 1Gbps including cable, satellite, fiber, and DSL
  • Plug in computers, game consoles, streaming players, and more with 4 x 1G Ethernet ports

Test SSH before blocking Telnet

  1. From an authorized management host or jump host, open an SSH connection to the device’s management address using the intended account.
  2. Confirm the session reaches the expected device, authentication succeeds, and the account receives the intended privilege level.
  3. Check SSH status using the platform’s commands. On Cisco IOS/IOS XE, show ip ssh reports SSH status and configuration, while show ssh shows active SSH connections; output and command availability vary by platform.
  4. If management access is source-restricted, test from each approved subnet or jump host. Cisco documents applying an access list to VTY lines; verify permitted sources before relying on the restriction.

Do not remove the existing Telnet path until the SSH session has been proven from the management location you actually use. Cisco’s SSH guide documents these status checks and VTY controls.

Block Telnet and verify it is refused

Use the enforcement mechanism documented for the device. For Cisco IOS/IOS XE, transport input ssh under every applicable VTY line allows SSH and rejects non-SSH remote terminal connections. Cisco advises applying the SSH-only setting to all available VTY lines; leaving a line outside the policy can leave Telnet accessible.

Rank #4
TRENDnet Gigabit Multi-WAN VPN Business Router, TWG-431BR
  • INTERFACE: 5 x Gigabit ports (Modes:4 WAN ports/1 LAN port or 1 WAN port/4 LAN ports), 1 x USB 3.0 port,1 x RJ-45 console port
  • MANUFACTURER PROTECTION: We stand by the quality of our products.The TWG-431BR Gigabit Multi-WAN VPN Business Router is backed and supported with 3 years of TRENDnet Manufacturer Protection.
  • NDAA and above TAA COMPLIANT: With our NDAA and TAA compliant Business Router, you can plan and install networking solutions that Government customers demand today (U.S. and Canada Only)
  • RELIABLE TECH SUPPORT: Our team of advisors, support and tech experts are English speaking, and available for all your needs during normal business hours. We take pride in being there for our customers.
  • GIGABIT MULTI WAN: The router supports up to four separate WAN internet connections to efficiently load-balance traffic by distributing network traffic to the best available link.

On Catalyst 1200, disable the separate Telnet service with no ip telnet server. Other product families may use different commands or controls. If the platform offers both a service toggle and line-level transport policy, follow its documentation to determine whether both are appropriate.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Establish a fresh SSH connection and confirm login still works.
  2. From an authorized test host, attempt a new Telnet connection to the management address. Confirm the connection is refused or the service is unavailable.
  3. Inspect all remote-access lines and any separate Telnet-server setting to ensure no alternate path remains enabled.
  4. Save the configuration using the platform’s normal process, then validate access again after reconnecting or during a controlled maintenance check.

There is no universal save command or change sequence across network devices. Follow the device’s own configuration and change-control procedures.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot failed SSH or lingering Telnet

SSH commands or key generation are rejected

Check whether the software image, release, and licensing support cryptographic SSH features. On IOS/IOS XE, verify that the required hostname and domain settings and host keys are present. Requirements differ by platform.

SSH connects but authentication fails

Check whether the VTY policy uses local login or AAA, whether the intended account is active, and whether the configured authentication method matches your access system.

The client cannot negotiate an SSH session

Compare the algorithms supported by the client and server and check their software versions. Cisco notes that supported ciphers and HMAC algorithms can vary by release.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Telnet still connects

Check every VTY or management line for a permissive transport policy, and check for a separate Telnet service toggle where the platform provides one. IOS VTY controls and Catalyst 1200’s server toggle are distinct mechanisms.

Do not delete SSH keys as a shortcut

On Cisco devices, deleting RSA keys can disable the SSH server and may affect other uses such as certificates, CA functions, or IPsec. Understand the consequences before changing host keys; see Cisco’s SSH troubleshooting guidance.

Quick Recap

Bestseller No. 3
NETGEAR Nighthawk WiFi 6 Router (RAX36) – Router Only, AX3000 3 Gbps Wireless Speed – Dual-Band Gigabit Internet – Covers 2,000 sq. ft., 25 Devices – Built-in VPN, USB 3.0, Gaming
NETGEAR Nighthawk WiFi 6 Router (RAX36) – Router Only, AX3000 3 Gbps Wireless Speed – Dual-Band Gigabit Internet – Covers 2,000 sq. ft., 25 Devices – Built-in VPN, USB 3.0, Gaming
Coverage up to 2,000 sq. ft. for up to 25 devices; Plug in computers, game consoles, streaming players, and more with 4 x 1G Ethernet ports
$99.99
Bestseller No. 4
TRENDnet Gigabit Multi-WAN VPN Business Router, TWG-431BR
TRENDnet Gigabit Multi-WAN VPN Business Router, TWG-431BR
MANAGEMENT: Supports web browser (HTTP, HTTPS), CLI, SSH and Telnet management; RACK MOUNT DESIGN: Sturdy metal housing with rack mount brackets included
$129.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.