SSH Basics: The Secure Way to Control Another Computer


Every cloud server on the planet is managed the same way: through SSH. Secure Shell lets you open a terminal on a remote machine and control it as if you were sitting at its keyboard — and everything you type is encrypted. If you want to work with servers, this is the skill.

How SSH Works

When you connect, your computer and the server perform a handshake: they verify each other’s identity and agree on encryption keys. From then on, every keystroke and every byte of output travels through an encrypted tunnel. Anyone spying on the network sees only noise.

Connecting for the First Time

From any Linux or macOS terminal (or Windows PowerShell):

ssh username@server-ip

Example: ssh anony@203.0.113.42. The first connection asks you to confirm the server’s fingerprint — say yes, and it’s saved. From then on, your computer warns you if the fingerprint ever changes, which is how SSH catches impersonation attacks.

Passwords Are the Weak Link — Use Keys Instead

Typing a password for every connection is slow, and passwords can be brute-forced. The professional move is SSH key authentication: a private key that lives on your computer and a public key that lives on the server.

Generate a key pair:

ssh-keygen -t ed25519

Copy the public key to the server:

ssh-copy-id username@server-ip

From then on, you log in with no password — and no attacker can brute-force a 256-bit key. This single upgrade blocks the most common attack against servers on the internet: automated password guessing.

Essential Security Hardening

  • Disable password login on your server once keys work (in /etc/ssh/sshd_config, set PasswordAuthentication no).
  • Change the default port from 22 to something random to cut down on automated bot noise.
  • Use a firewall to allow SSH only from your IP addresses.

SSH is one of the most trusted protocols in computing — but only when configured right. Learn it, lock it down with keys, and you’ll manage servers the way professionals do.

Comments

Popular Posts