Skip to content

Instantly share code, notes, and snippets.

@lackdaz
Last active June 11, 2020 15:10
Show Gist options
  • Save lackdaz/d7e9cdf70bee2b4bc3f1ad2bfd7dc10c to your computer and use it in GitHub Desktop.
Save lackdaz/d7e9cdf70bee2b4bc3f1ad2bfd7dc10c to your computer and use it in GitHub Desktop.
deletes a known_hosts entry with pattern matching port 3095
sed '/3095/d' ~/.ssh/known_hosts > ~/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment