Free tech learning for everyone, from basics to pro

Network FundamentalsNetworking SecurityBeginner

Remote access protocols compared: SSH, Telnet, RDP, VNC, web GUIs and out-of-band console

In short: Administrators reach devices with SSH for command lines, RDP for Windows desktops, VNC for screen sharing and HTTPS for web interfaces. Telnet is unencrypted and should be replaced by SSH. None of these should face the internet directly: use a VPN or jump host with MFA, a separate management network, and out-of-band console access for when the network itself is down.

The options

Remote administration protocolsSSHTCP 22, encrypted CLITelnetTCP 23, plain textRDPTCP/UDP 3389, WindowsdesktopVNCTCP 5900, screen sharingHTTPS GUITCP 443, web adminConsoleserial, out of band
Figure 1. Use encrypted protocols, keep them off the internet and reach them through a VPN or jump host.
  • SSH (Secure Shell, TCP 22): encrypted command-line access to Linux servers, network devices and more. Supports keys, port forwarding and file transfer (SFTP, SCP). The standard choice.
  • Telnet (TCP 23): the original remote terminal. Everything, including passwords, is sent in plain text and can be captured. Only acceptable on isolated labs; disable it on real devices with transport input ssh.
  • RDP (Remote Desktop Protocol, 3389): full Windows desktop. Encrypted, supports Network Level Authentication (NLA). Heavily targeted when exposed.
  • VNC (5900 and up): screen sharing across operating systems. Many implementations have weak or no encryption; tunnel it through SSH or a VPN.
  • Web GUIs over HTTPS: firewalls, controllers, appliances. Disable plain HTTP, use valid certificates and restrict who can reach them.
  • Remote support tools such as TeamViewer, AnyDesk and Quick Assist: convenient, but also used by scammers and attackers; control which ones are allowed.

Enabling SSH on a Cisco device

hostname CORE-1
ip domain name corp.example.com
crypto key generate rsa modulus 3072
ip ssh version 2
username admin privilege 15 algorithm-type scrypt secret Example-Only
line vty 0 15
 login local
 transport input ssh
 access-class MGMT-ONLY in

Protecting remote access

  • Never expose management protocols to the internet. Scanners find open SSH, RDP and admin GUIs within minutes and try passwords constantly.
  • Reach them through a VPN with MFA, or through a jump host (bastion) that is the only system allowed to connect to devices, with full logging.
  • Put device management interfaces on a separate management VLAN or VRF and restrict access with ACLs.
  • Use central authentication (TACACS+, RADIUS or the directory) so leavers lose access everywhere at once, and log every session.
  • Prefer SSH keys or certificates over passwords for automation and admin accounts.

Out-of-band management

If a bad change or failure takes the network down, in-band tools like SSH stop working too. A console server connects to the serial console ports of switches, routers and firewalls, and is reached through a separate path, such as its own broadband line or a 4G modem. It is the cheapest insurance against a long drive to a remote site.

Real-world example: the passwords on the wire

During an audit, a capture on a school's management VLAN showed network engineers' usernames and passwords in clear text. Several old switches were still managed with Telnet. The team enabled SSH on every device, removed Telnet with transport input ssh, and moved logins to TACACS+ with individual accounts.

Practice

Why should Telnet be replaced by SSH?
Telnet sends everything, including passwords, in plain text; SSH encrypts the session.
Which command restricts a Cisco device's VTY lines to SSH only?
transport input ssh under the line vty configuration.
What is out-of-band management for?
Reaching device consoles through a separate path when the main network is down or misconfigured.

Key takeaways

  • Use SSH for CLI, RDP for Windows and HTTPS for web GUIs; retire Telnet.
  • Never expose management protocols directly to the internet.
  • Use VPNs or jump hosts with MFA, a management VLAN and central authentication.
  • Keep out-of-band console access for when the network is down.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: