SSH
Secure Shell
ELI5 — The Vibe Check
SSH is like a secure remote control for servers. You type a command on your laptop and it executes on a server across the world, all through an encrypted connection. It's the primary way developers access and manage remote servers. Way safer than the old Telnet.
Real Talk
SSH is a cryptographic network protocol for secure remote login and command execution over an unsecured network. It uses public-key cryptography for authentication and encrypts all communication. Operates on port 22. Also supports file transfer (SCP/SFTP) and port tunneling.
Show Me The Code
# Connect to remote server
ssh user@192.168.1.100
ssh -i ~/.ssh/my_key.pem ubuntu@ec2-server.com
# Copy files securely
scp localfile.txt user@server:/remote/path/
# Generate SSH key pair
ssh-keygen -t ed25519 -C "your@email.com"
When You'll Hear This
"SSH into the server and check the logs." / "Add your SSH public key to the authorized_keys file."
Related Terms
Port
A port is like an apartment number on a building. Your computer is the building (localhost), and multiple services live inside.
SFTP (SSH File Transfer Protocol)
SFTP is file transfer done the secure way. It uses SSH to encrypt everything — your password, the files, all of it.
Tunnel
A tunnel is when you wrap one type of network traffic inside another. Imagine mailing a letter inside another letter.
VPN (Virtual Private Network)
A VPN creates an encrypted tunnel from your device to a server somewhere else.