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
- 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?
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?
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.
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.