A Key That Can Only Run Backups
The backup server pushes archives to this host as yusuf, using the key in /srv/lab/backup-server.pub. A plain key line would also give it a full shell, port forwarding and more.
Add the key to yusuf's ~/.ssh/authorized_keys so that a login with it:
172.16.8.0/24,/usr/local/bin/backup-receive, whatever command the client asks for,The key already in the file for yusuf's own laptop must keep working exactly as before.
About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Part of Prepare for the LFCS. Next step: SSH Key Login Refused
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.