Linux Labs

Networking / Stage 10 of 14 · step 7 of 9

SSH key login isn't working

medium ~20 min
Not running Starting usually ~20 s
Report a problem

Situation

You were given a deploy account on this server: your public key ~/.ssh/id_ed25519.pub is already in its authorized_keys. But ssh deploy@localhost answers Permission denied (publickey), and deploy has no password.

Task

  1. ssh deploy@localhost logs in with your key, no password.
  2. The permission check in sshd stays on: StrictModes yes.

There is no internet on the machine, and everything you need is installed.

Visible only to you. Saved as you type.

All notes

Lab goals

0 of 2
  • ssh deploy@localhost logs in with the key, no password — not checked yet
  • sshd still checks the key file modes (StrictModes yes) — not checked yet

Hints

0 of 3 open · they open one at a time
Hint 1
Show the solution after 3 failed checks

Leave the lab?

The machine keeps running for 10 more minutes, then it is removed. Files are lost; completed goals stay.

Loading…