plone / plonedev.vagrant

A Vagrant setup for a Plone development VirtualBox
https://plone.org/download
84 stars 48 forks source link

Unable to ssh to Vagrant machine using putty #23

Open MarkusMayer opened 6 years ago

MarkusMayer commented 6 years ago

Hi, i tried to setup plone on a Win10 machine using the vagrant script. Everything was working smoothly except that at first I couldn't ssh to the virtual machine using the presupplied scripts (putty_ssh,buildout,...).

After some guessing and googling around I arrived at the conclusion that it has something to do with the ssh setting in vagrant file. In the current version of the file the line #config.ssh.insert_key = false is commented. If I understand it correctly, this setting leads vagrant to create a new key when creating the vm. With a new key the supplied insecure_putty_key.ppk is not working and you are queried for a password by the guest machine.

Vagrant puts the newly created key under .vagrant\machines\default\virtualbox\ It is then possible to create a new putty compatible key file (.ppk) using puttygen. Which when used in the scripts does work.

Another approach is to uncomment the abobe line in the vagrant file config.ssh.insert_key = false

With this setting everything was working fine on my machine. Unfortunately I have no idea which of the 2 variants is prefereable. Any input is appreciated!