Skip to content
BENIBIX Learn

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

9 lessons5 sections~2 h25 termsSee the wordsBasic

Level 1 · Connecting

score0200/5 words

The ssh command and the program that answers it. How your laptop knows it reached the real server.

  1. 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
  2. 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 words

Logging in with a key pair instead of a password. Keeping the key locked, and making long commands short.

  1. 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
  2. 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
  3. 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 words

Switch off password logins and root logins. Ban the bots that keep guessing.

  1. sshd_config and Fail2banHow to switch off password and root logins in sshd_config. How to check the change took hold, and ban guessers with fail2ban.14 min4 terms

Level 4 · Moving files

score70850/3 words

Three tools that copy files over SSH, and which one suits which job.

  1. scp, SFTP and rsyncThree ways to move files over SSH. scp copies once, SFTP opens a session you can browse, and rsync sends only what changed. When to use each.13 min3 terms

Level 5 · Reaching further

score851000/5 words

Reach private machines through one SSH login. Two tools that send a whole screen, not just text.

  1. 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
  2. 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.

Back to the top

See what comes after this course