Protocol notes for this page (click to expand)

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

Three answers to one need

★★★ The need: operate a machine that is not in front of you.

· Telnet ships keyboard characters as they are -- in the clear, password included;
· SSH does the same thing encrypted, and grew a pile of other abilities along the way;
· RDP carries a screen, not characters -- not an encrypted Telnet but a different dimension.

★★ So the first two replace each other and the third does not.

★★★ Encryption is not SSH's real value

★★★★ Encryption is only the entry ticket. What SSH is actually used for:

· Port forwarding: a remote 3306 appears as your local 3306, over the encrypted channel;
· SFTP: a subsystem of SSH, not a variant of FTP, also on port 22;
· Jump hosts: chain one machine through another to reach an internal network;
· Key-based login: no password, which is what makes automation safe.

★★ All of it multiplexed over one connection.

★ Common misconceptions

★★★ "SFTP is encrypted FTP" -- no, it is a subsystem of SSH. Encrypted FTP is FTPS, a different thing entirely.

★★★ "Telnet is fine on an internal network" -- one capture yields the password, and it is exactly what lateral movement looks for after a breach.

★★ "RDP is SSH for Windows" -- it carries graphics, with bandwidth and latency demands of an entirely different order.