Learn SSH Keys and Logins
How to log in to a far server and type as if you sat at it. Nine lessons start with the ssh command and how your laptop knows it reached the right server. Then come key pairs, the agent, the passphrase and a config file that turns long commands into short ones. After that, how to shut out password guessers, three ways to move files, tunnels to private machines, and two ways to see a whole screen. It stops at SSH. Renting the server is a separate subject.
Not started
0 of 9 lessons done
Level 1 · Connecting
score0200/5 wordsThe ssh command and the program that answers it. How your laptop knows it reached the real server.
- SSH Client and ServerWhat SSH is. How the ssh command on your laptop talks to sshd on a server, over port 22, on a line nobody else can read.10 min3 terms
- SSH Host Keys and known_hostsHow a server proves it is the real one with its host key. Why ssh asks yes or no on the first visit, and what to do when the key changes.10 min2 terms
Level 2 · Keys and shortcuts
score20500/8 wordsLogging in with a key pair instead of a password. Keeping the key locked, and making long commands short.
- SSH Keys and ssh-keygenHow an SSH key pair works: a private key that stays on your laptop and a public key that goes to the server. How to make one and put it in place.13 min5 terms
- SSH Agent and PassphrasesWhy a private key should have a passphrase. How ssh-agent keeps it open for the day, so you type the passphrase once, not every time.10 min2 terms
- The SSH Config FileHow ~/.ssh/config turns a long ssh command into a short name. How to set the user, address, port and key once for each server you use.10 min1 terms
Level 3 · Locking the door
score50700/4 wordsSwitch off password logins and root logins. Ban the bots that keep guessing.
Level 4 · Moving files
score70850/3 wordsThree tools that copy files over SSH, and which one suits which job.
Level 5 · Reaching further
score851000/5 wordsReach private machines through one SSH login. Two tools that send a whole screen, not just text.
- SSH Tunnels and Jump HostsHow an SSH tunnel carries a private service, such as a database, to your laptop. How a jump host lets you reach servers with no public address.12 min2 terms
- RDP vs VNC Remote DesktopHow RDP and VNC send a whole screen, not just text like SSH. Which one fits Windows or Linux, and why neither should face the internet bare.11 min3 terms
Words in this course
The 25 glossary entries this course teaches, in the order it teaches them. Open any of them on its own.
- Secure Shell (SSH)
- SSH Server (sshd)
- Network Port
- SSH Host Key
- known_hosts
- SSH Key Pair
- ssh-keygen
- authorized_keys
- SSH Public Key Authentication
- chmod
- SSH Key Passphrase
- ssh-agent
- SSH Config File (~/.ssh/config)
- sshd_config
- SSH Password Authentication
- sudo
- Fail2ban
- scp
- SSH File Transfer Protocol (SFTP)
- rsync
- SSH Tunnel
- Jump Host
- Remote Desktop Protocol (RDP)
- Virtual Network Computing (VNC)
- Virtual Private Network (VPN)