- Open PuttyGen
- Click Load
- Load your private key
- Go to Conversions->Export OpenSSH and export your private key
- Copy your private key to ~/.ssh/id_rsa
- Create the RFC 4716 version of the public key using ssh-keygen
ssh-keygen -e -f ~/.ssh/id_rsa > ~/.ssh/id_rsa_pub.tmp - Convert the RFC 4716 version of the public key to the OpenSSH format:
ssh-keygen -i -f ~/.ssh/id_rsa_pub.tmp > ~/.ssh/id_rsa.pub
Above steps also work to use your ppk file with Cygwin password-less login.