Skip to content

Instantly share code, notes, and snippets.

@kiasaki
Last active August 29, 2015 14:12
Show Gist options
  • Save kiasaki/ac5a95301d3f478e09eb to your computer and use it in GitHub Desktop.
Save kiasaki/ac5a95301d3f478e09eb to your computer and use it in GitHub Desktop.
Useful one liners
# Generate public key file from secret key file
ssh-keygen -y -f ~/.ssh/key > ~/.ssh/key.pub
# Fetch the fingerprint for a host
# (Useful with salt ssh_kwown_host state)
ssh-keygen -l -f ~/.ssh/known_hosts -F github.com
# Show SSL Cert details
openssl x509 -in certificate.crt -text -noout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment