Skip to content

Instantly share code, notes, and snippets.

@harapeko
Last active August 29, 2015 14:04
Show Gist options
  • Save harapeko/7329960d540bfccabfe5 to your computer and use it in GitHub Desktop.
Save harapeko/7329960d540bfccabfe5 to your computer and use it in GitHub Desktop.
ヾ(o゚ω゚o)ノ゙Macでお手軽にppkをpemに変換する方法 ref: http://qiita.com/harapeko_wktk/items/ffdecc7578fd8b203587
brew info putty
brew install putty
puttygen hoge.ppk -O private-openssh -o hoge.pem
puttygen -h
puttygen: Release 0.63
Usage: puttygen ( keyfile | -t type [ -b bits ] )
[ -C comment ] [ -P ] [ -q ]
[ -o output-keyfile ] [ -O type | -l | -L | -p ]
-t specify key type when generating (rsa, dsa, rsa1)
-b specify number of bits when generating key
-C change or specify key comment
-P change key passphrase
-q quiet: do not display progress bar
-O specify output type:
private output PuTTY private key format
private-openssh export OpenSSH private key
private-sshcom export ssh.com private key
public standard / ssh.com public key
public-openssh OpenSSH public key
fingerprint output the key fingerprint
-o specify output file
-l equivalent to `-O fingerprint'
-L equivalent to `-O public-openssh'
-p equivalent to `-O public'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment