Puttygen windows XP
The Secure Shell ("SSH") protocol is all about security and Vagrant is prepackaged with an SSH key. Unfortunately, PuTTY is not compatible with OpenSSH, out-of-the-box. Consequently, PuTTY will not recognize the insecure_private_key (which is in OpenSSH format) provided by Vagrant as a valid, private key.
The file is named insecure_private_key only because it is not very private, in that it is publicly available, because it ships with Vagrant. You can regain the security offered by the SSH protocol by creating your own SSH key pair and editing the Vagrantfile, accordingly.
A workaround is to use PuTTYgen (a free, open-source RSA and DSA key generation utility) to import and convert the insecure_private_key into PuTTY's format (a .ppk file). To do so, simply:
- Open the PuTTYgen utility;
- Click on the Load button;
- Navigate to the ...\.vagrant.d\ folder in your local machine's Home Directory; e.g.
- Windows XP: C:\Documents and Settings\{your username}\.vagrant.d\
- Windows 7: C:\Users\{your username}\.vagrant.d\
- Double-click on the insecure_private_key file;
- Toward the bottom of the PuTTYgen dialog box, change the value in the Number of bits in a generated key: field to 2048;
- Click on the Save private key button.
Run "vagrant ssh-config" and make note of the HostName, User and Port being used.
Then, launch PuTTY and enter the following connection information:
Category | Sub-category | Field | Value |
---|---|---|---|