← Learn
Dangerous
rm -rf ~/.ssh

cross-platform · bash · Beginner

Deletes the entire SSH directory: private keys, known hosts, and config. The private keys are not recoverable, and any server that only trusts those keys becomes unreachable from this machine.

Signals to notice

  • removes private keys that exist in no other location
  • known_hosts and config go with them, so host verification is lost too

Think you can spot these under time pressure?

Start Training

More Credential Access