Fix "config.ssh.shell" value for stray window windows?

I run a roaming box with Windows 7 from a host that is also Windows 7 with the "vagrant up" command.

Vagrantfile Content:

Vagrant.configure(2) do |config| config.vm.box = "win7_base_test" config.vm.network "forwarded_port", guest: 88, host: 3088 config.ssh.username = "vagrant" config.ssh.password = "vagrant" config.ssh.port = "3088" config.ssh.host = "127.0.0.1" config.ssh.shell = "cmd" end 

As a result, I get the following list with an error at the end:

 vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 88 => 3088 (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:3088 default: SSH username: vagrant default: SSH auth method: password default: Warning: Connection timeout. Retrying... The configured shell (config.ssh.shell) is invalid and unable to properly execute commands. The most common cause for this is using a shell that is unavailable on the system. Please verify you're using the full path to the shell and that the shell is executable by the SSH user. 

Note. I can connect to the wandering mailbox by doing "roaming ssh" in the meantime and invoking shell commands there.

So I have a question: am I using the correct value ("cmd") for the parameter "config.ssh.shell"? What values ​​are possible there at all?

Thanks!

+5
source share
2 answers

One option is to use WinRM instead of SSH: set config.vm.communicator to "winrm".

+1
source

According to Vagrant docs , config.ssh.shell only affects the shell used by Vagrant, and not what is used as the shell when running vagrant ssh . By default, it uses bash, and if you do not have a specific need to change this, leave it as I think.

0
source

All Articles