This article is the third of a series I’ve written about migrating from using PuTTy on Windows to using the native OpenSSH client now available on Windows 10: you can read the rest of the articles via:
- Storing keys using the SSH Agent
- Importing existing keys < You are here
- Creating a new public/private key pair
- Other useful OpenSSH commands
- Configuring Windows Git
If you’ve been using SSH for a while, you’ve probably got a variety of private keys in either PuTTy’s own “PPK” format or OpenSSH format. Windows OpenSSH only has support for OpenSSH keys (go figure from the name! 😉 ) and so any PuTTY keys will need converting first.
Converting PuTTy PPK Private Keys to OpenSSH format
- Open PuTTyGen
- Select “Load an existing private key file” and select your .ppk private key
- Select from the menu “Conversions->Export OpenSSH key”
- Save the file.
- Repeat the previous three steps as necessary for all .ppk files
Adding OpenSSH private keys
In a normal PowerShell window (i.e. not as administrator), just run:
Of course, changing the path of the key appropriately!
Windows appears to accept standard private keys and .pem private keys