-
Notifications
You must be signed in to change notification settings - Fork 113
#332 Setup OpenSSH Portable for windows #333
Conversation
Thank you for your contribution... The SSH seems to be working fine (I checked in on Win10). One more thing which I am missing. When I run $ vagrant ssh
[email protected]'s password: Is there a chance to add the "Vagrant key" to skip the authentication like it is for linux systems: https://github.com/ruzickap/packer-templates/blob/master/scripts/linux-common/vagrant.sh ? |
yeah, so as far as i know this is how it works: image build place a default "insecure" key within the virtual machine which allows I think to get the passwordless auth working with windows, its required to place the vagrant insecure key within the image during build: https://github.com/hashicorp/vagrant/tree/master/keys I dont know where the place it on windows, as i dont have experience where the openssh service searches for it. It actually manages to replace the key with the password setting, but then doesnt use it for some reason.. |
thats what i get from debug:
|
So in theory everything should behave nicely if we place the vagrant default insecure public key to: "C:\Users\vagrant.ssh\authorized_keys" during image build. Then the option: config.ssh.password = "vagrant" is not necessary anymore and vagrant can use keys from the start. |
Ok let's merge the OpenSSH first, test it with all "windows" boxes and then look at the
|
Install OpenSSH Portable for windows, which can be used for provisioning as an alternative to winrm
on libvirt based setups.
While by default, winrm is used, users can enable the ssh communicator using the following settings within the
Vagrantfile:
As virtual machine spins up, connection is attempted and provisioning scripts are executed via
SSH: