▸Protocol notes for this page (click to expand)

Telnet / SSH (Secure Shell) / RDP (Remote Desktop Protocol)

Telnet, SSH and RDP

All three are used to operate a remote machine.

· Telnet sends keyboard characters as they are, entirely in plaintext, password included;
· SSH also carries characters but encrypts everything, and also provides port forwarding, SFTP, jump hosts and more;
· RDP carries screen images and mouse and keyboard events; it is a graphical remote desktop protocol.

SSH replaces Telnet; RDP serves graphical desktops, a different use from the other two.

What SSH is used for

Besides the encrypted remote shell, SSH is commonly used for:

· Port forwarding: a remote port 3306 is mapped to local port 3306, with the traffic carried over the encrypted channel;
· SFTP: a subsystem of SSH, a different protocol from FTP, also on port 22;
· Jump hosts: reaching an internal network through one or more intermediate hosts;
· Key-based login: no password, so automation scripts can log in safely without one.

All of these share one SSH connection.

Common misconceptions

SFTP is a subsystem of SSH, not an encrypted FTP. Encrypted FTP is FTPS, a different protocol.

Telnet is not safe on an internal network either. One captured packet yields the password, and after a breach attackers moving laterally look specifically for Telnet.

RDP carries graphics, unlike SSH, and needs far more bandwidth and far lower latency than SSH.