Lazo Lab Sign up

Linux & the Command Line / Servers and scripts

Lesson 25 of 30

SSH

SSH gives you a secure terminal on another machine. Use key-based login instead of passwords, and disable root login over SSH.

Key points

  • ssh user@host
  • ssh-keygen -t ed25519 makes a key pair
  • ssh-copy-id installs your key
ssh-keygen -t ed25519
ssh-copy-id fahad@myserver
Watch a video on thisOpens YouTube search results for “SSH” in a new tab

Quiz · +10 XP

Which is safer for SSH logins?

Log in to save progress and earn XP.