Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cboulanger/4f5865c23e390d066a0582fbae5065ff to your computer and use it in GitHub Desktop.
Save cboulanger/4f5865c23e390d066a0582fbae5065ff to your computer and use it in GitHub Desktop.
Convert all ssh private key files in a directory to PuTTY (Windows SSH client) format
find .ssh -type f -exec grep -l 'BEGIN OPENSSH PRIVATE KEY' {} \; | xargs -I {} puttygen {} -o {}.ppk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment