Keyz (20 pts)

Problem Description: While webshells are nice, it'd be nice to be able to login directly. To do so, please add your own public key to ~/.ssh/authorized_keys, using the webshell. Make sure to copy it correctly! The key is in the ssh banner, displayed when you login remotely with ssh, to

Write-up: To do so, you'd first want to generate an SSH key.


You can do set it up with all the defaults.

ssh-keygenwill generate two files in your ~/.ssh folder, id_rsa and The first one is your private key, which you keep to yourself, and the latter is your public key which you will paste inside the web shell. Depending on your operating system, the paste command will vary. For macOS the command is pbcopy . I use linux though, so I ran:

cat ~/.ssh/

I copied the output, pasted it in the web shell, and logged in from my desktop terminal:

There's your flag.

results matching ""

    No results matching ""