Jump to

    Lessons / Lesson 10, Gibson & Shelley, Ch. 3

    Remote access: SSH, RDP and jump servers

    SSH lets you type commands on a faraway computer through a secret tunnel. RDP lets you see and control its whole screen. Both are powerful, so attackers love them too.

    Poster: SSH and RDP. A child in a treehouse sending commands through an encrypted tunnel, hanging a padlock on a server door, a chained root door while Sam walks in by a side door, and a magic remote behind an MFA gate.

    Tap any panel to explore it.

    Like you’re 10

    Imagine you could control your computer at home while sitting in your treehouse.

    SSH is a secret walkie-talkie tunnel. You whisper typed instructions down the tunnel, like “show me my files”, and the computer whispers the answers back. Anyone listening in only hears scrambled noise.

    SSH keys are a special padlock and key. You make a matching pair. You give the computer the padlock to hang on its door and you keep the only key in your pocket. Next time, the door opens for you without a password, because only your key fits.

    RDP is a magic TV remote. Instead of whispering instructions, you see the other computer’s whole screen on yours and move its mouse as if you were sitting in front of it.

    Grown-up version

    SSH (Secure Shell)RDP (Remote Desktop Protocol)
    What you getAn encrypted command lineA full graphical desktop
    Typical useAdministering Linux servers and network devicesAdministering Windows machines, remote working
    PortTCP 22TCP 3389
    Common toolOpenSSHWindows Remote Desktop

    The SSH commands for the exam (gcga is just the name of the server):

    CommandWhat it does
    ssh gcgaConnect to the server gcga as your current username
    ssh root@gcgaConnect as the user root, the all-powerful administrator
    ssh-keygen -t rsaCreate a key pair using the RSA algorithm. Modern guidance often prefers -t ed25519
    ssh-copy-id root@gcgaCopy your public key onto the server so you can log in with your key instead of a password

    Key-based login, properly: the public key goes into the server’s authorized_keys file. The private key never leaves your machine, and should be protected with a passphrase. The server proves you hold the private key without it ever being sent.

    Security points:

    • Disable direct root login (PermitRootLogin no). Log in as a named user and use sudo, so every admin action is tied to a person.
    • Never expose RDP directly to the internet. Put it behind a VPN or a remote desktop gateway, require MFA, and turn on Network Level Authentication.
    • Telnet (port 23) is the old, unencrypted ancestor of SSH. If you see it, it’s a finding.

    VPN vs jump server: getting in safely

    Diagram: Jump server vs VPN. A VPN is an encrypted tunnel from a home laptop into the corporate network for everyday remote work. A jump server is a security airlock: one hardened, camera-watched box that admins pass through, which logs access before the vault. Better together: the admin uses the VPN tunnel to enter the network, then goes through the jump server to reach the critical servers.

    Tap the diagram to zoom in.

    Like you’re 10: VPN vs jump server

    A VPN is a secret tunnel from your treehouse into the school. Anyone can use it to get to their classroom, and nobody outside can see what’s going through it.

    A jump server is the airlock in front of the school vault. Only the caretakers are allowed in. A camera records everyone who walks through, you show your badge, and the vault door only opens from inside the airlock, never from the corridor.

    The best schools use both: the tunnel gets you into the building, and the airlock is the only way to the vault.

    Grown-up: VPN vs jump server

    A jump server (also called a jump box) is a hardened server that administrators connect to first, and from which they manage other systems. The critical servers are set to accept admin connections, such as SSH or RDP, only from the jump server.

    VPNJump server
    What it isAn encrypted tunnel from your device into the networkA hardened, monitored server admins log in to before reaching other systems
    Who uses itEveryone working remotelyAdministrators only
    What you can reachUsually a whole network segmentOnly the systems the jump server is allowed to reach
    Main strengthProtects data crossing untrusted networks, like home or café Wi-FiOne controlled, logged path to critical systems, which shrinks the attack surface
    Main weaknessOnce connected, a stolen login can wander farIt’s a high-value target, so it must be patched, locked down and protected with MFA

    Better together (best practice): the admin connects to the VPN to enter the network, logs in to the jump server with MFA, and only then connects to the critical servers. Every admin session passes through one point where it can be logged and, ideally, recorded. Jump servers often sit in a separate management network or a screened subnet.

    For the exam: a VPN protects the connection. A jump server controls and audits admin access. They solve different problems, so the strongest answer usually uses both.

    A real-world example

    In March 2024, an engineer at Microsoft noticed that SSH logins on his Linux machine were taking half a second longer than usual. He dug in and found a backdoor hidden inside XZ Utils, a compression tool that SSH servers on some Linux systems relied on. It had been planted by someone who had spent two years earning the trust of the project’s volunteer maintainer. It was caught just before it reached the major stable Linux releases.

    Why a buyer cares

    • The risk it reduces: exposed RDP and stolen remote-access passwords are among the most common ways ransomware crews get in. Once inside with admin access, they can reach everything.
    • Pressure: cyber insurance questionnaires routinely ask whether RDP is exposed and whether remote access requires MFA. The wrong answer can mean no cover.
    • Who owns it at a company: IT infrastructure and the security team, often with a dedicated identity or privileged access owner in larger companies.
    • What gets bought: privileged access management (CyberArk, BeyondTrust, Delinea) to control and record admin sessions, and zero trust network access (Zscaler, Cloudflare Access, Palo Alto Networks) to replace exposed services and old VPNs. A PAM platform is essentially the jump server turned into a product: one controlled gateway for admins, with session recording, password vaulting and approvals built in.
    • Why VPNs alone worry buyers: in 2021, attackers got into Colonial Pipeline through an old VPN account protected only by a password, with no MFA. The ransomware that followed shut down fuel supplies across the US East Coast for days.
    • A good discovery question: “Can you show me every way an administrator can connect to a server from outside the office, and which of those need MFA?”

    The one thing to remember

    SSH is a secure command line, RDP is a remote screen. Both should sit behind MFA and never be left open to the internet. For admins, the safe route is a VPN to get in, then a jump server to reach anything critical.

    Buyer score

    8/10

    Remote access is one of the main doors ransomware walks through, and insurers check how it’s locked.

    The pitch

    Closes the remote-access doors that ransomware gangs use most to get in.

    Share on LinkedIn
    BudgetIs there a product category companies buy for this?
    2/2.5
    PainDoes it cause breaches or outages people have heard of?
    2.5/2.5
    PressureDo regulators, insurers or auditors demand it?
    2/2.5
    OwnerIs there a clear buyer who is judged on it?
    1.5/2.5

    See every topic ranked by buyer score

    Check yourself

    4 quick questions. Get them all right and this lesson is marked as learned.

    1. 1Which port does RDP use?

    2. 2What does ssh-copy-id do?

    3. 3What is the safest way to give remote staff RDP access?

    4. 4An administrator needs to manage critical database servers from home. Which setup follows best practice?

    Revision cards

    For later: answer out loud first, then check.

    1Which ports do SSH and RDP use?

    SSH uses TCP 22. RDP uses TCP 3389.

    2What does ssh-keygen create?

    A key pair: a private key that stays on your computer, and a public key you can share.

    3What does ssh-copy-id do?

    Adds your public key to the server’s list of authorised keys, so you can log in by proving you hold the matching private key instead of typing a password.

    4Why is logging in directly as root discouraged?

    Root has unlimited power and every attacker tries it first. Best practice is to disable direct root login, log in as a named user, and use sudo for admin tasks, which also leaves an audit trail.

    5What is the main risk of exposing RDP to the internet?

    Attackers constantly scan for open RDP and try stolen or guessed passwords. It is one of the most common ways ransomware gets in. Put RDP behind a VPN or gateway with MFA.

    6Jump server vs VPN?

    A VPN is an encrypted tunnel that brings your device into the network, for everyone working remotely. A jump server is a hardened, monitored machine that only admins log in to, and the only one allowed to reach critical servers. Best practice uses both: VPN in, then jump server to the crown jewels.

    Your progress is saved on this device only.

    Tap the image to zoom

    1SSH: The Secret Tunnel

    SSH gives an encrypted command line on a faraway computer, on TCP port 22.

    Swipe for panel 2 →

    2SSH Keys

    Your public key goes on the server; your private key never leaves your machine.

    Swipe for panel 3 →

    3No Super-Boss Logins

    Disable direct root login. Log in as yourself and use sudo, so every admin action is tied to a person.

    Swipe for panel 4 →

    4RDP: The Magic Remote

    RDP gives a full remote desktop on TCP port 3389. Keep it behind a VPN or gateway with MFA, never open to the internet.