SSH
Also called Secure Shell
SSH is a protocol for logging in to a remote machine and running commands on it over an encrypted connection. A client on one machine connects to a server on another, and both sides check each other's identity before any data passes. The server proves itself with a host key, which the client compares with the one it saw on earlier visits. The two sides then agree on session keys, so everything that follows is encrypted and guarded against tampering.
SSH replaced older tools such as Telnet and rlogin, which sent passwords and commands as plain text. It is now the standard way to administer servers and other machines that have no screen or keyboard. OpenSSH, the most widely used implementation, ships with nearly every Unix-like system and with recent versions of Windows. That reach means almost any tool that acts on a remote machine can count on SSH being there.
Beyond a remote shell, one SSH connection can carry file transfers, through tools such as scp and sftp, and forwarded network ports. This makes it a general secure channel, not only a way to type commands on another machine. The protocol runs many channels side by side over that single connection, each with its own stream of data. Tools such as Git and rsync use it as their transport rather than building security of their own.
Key-based authentication
Key-based authentication is a way of logging in with a key pair instead of a password. The server holds the public key, and the client proves it has the matching private key by signing a challenge. The server keeps a list of the public keys it accepts for each user account. Adding a key to that list grants access, and removing it takes access away.
The private key never leaves the client, so a compromised server cannot copy it. With agent forwarding turned on, though, that server can ask the agent to sign logins elsewhere for as long as the session lasts. Passwords, by contrast, travel to the server on every login and can be guessed or phished. The private key is often protected with a passphrase and held by an agent program that signs on its behalf. Hardware keys go further, keeping the private key on a device it cannot be copied from.
Long-lived keys are hard to track and revoke once they are copied to many machines. Short-lived SSH certificates, signed by a central authority and valid for minutes or hours, let a system grant access per session instead. Each server then trusts the authority rather than a list of individual keys. An expired certificate needs no revocation, so a leaked one stops working soon after.
Port forwarding
Port forwarding is the carrying of traffic for a network port through an SSH connection. Local forwarding makes a port on the remote side reachable from the client, and remote forwarding does the reverse. The client listens on a local port and sends each connection it accepts through the tunnel. The server opens the matching connection on its side and copies data in both directions.
A developer can open a database or a web app that listens only on the remote machine as if it ran locally. The traffic travels inside the encrypted connection, so the service needs no public port of its own. Remote forwarding serves the opposite need, exposing a service on a laptop to the machine on the other side. It is a common way to show work in progress without deploying it.
Dynamic forwarding turns the client into a SOCKS proxy that sends any connection through the server. Because a tunnel can slip past firewall rules, many organizations restrict who may forward ports and to where. To the network, the traffic is one encrypted SSH connection, so its real destinations stay hidden. On a sandbox, an open session can become a route around its egress control unless the server limits forwarding.
Jump hosts
Jump hosts are machines that relay SSH connections to machines with no public address of their own. The client connects to the jump host first, and SSH opens the second connection through it. The second connection is encrypted end to end, so the jump host relays bytes it cannot read. Modern clients set this up with one option, without a manual login on the jump host.
Machines behind network address translation or in a private network are reached this way, or through a similar proxy. A single hardened entry point, often called a bastion host, is easier to watch and lock down than many exposed servers. All access then passes one point, where logins can be recorded and checked against policy. If the bastion falls, though, an attacker gains a path to everything behind it.
Some platforms replace the bastion with a gateway that checks each user and routes the session to the right machine by name. The target machine then needs no open inbound port, only an outbound connection to the gateway. The gateway can tie access to a company login instead of keys spread across servers. For sandboxes created and destroyed on demand, routing by name avoids giving each one a reachable address.