You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Attempting graceful shutdown of VM...
...
==> default: Attempting graceful shutdown of VM...
C:/HashiCorp/Vagrant/embedded/gems/2.2.16/gems/vagrant-2.2.16/lib/vagrant/patches/net-ssh.rb:10:in `rsa_compat_build_request': undefined method `[]' for nil:NilClass (NoMethodError)
from C:/HashiCorp/Vagrant/embedded/gems/2.2.16/gems/net-ssh-6.1.0/lib/net/ssh/authentication/methods/publickey.rb:41:in `send_request'
from C:/HashiCorp/Vagrant/embedded/gems/2.2.16/gems/net-ssh-6.1.0/lib/net/ssh/authentication/methods/publickey.rb:51:in `authenticate_with'
from C:/HashiCorp/Vagrant/embedded/gems/2.2.16/gems/net-ssh-6.1.0/lib/net/ssh/authentication/methods/publickey.rb:20:in `block in authenticate'
Expected behavior
Vagrant should continue bringing up the machine.
Actual behavior
Vagrant errors out with above stacktrace.
This is because the regex in vagrant/lib/vagrant/patches/net-ssh.rb for matching the OpenSSH version is not compatible with the version string of the build in OpenSSH server in Windows. 'OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2'
Changing the regex to something like /OpenSSH_.*(?<version>\d+\.\d+).*/ makes vagrant work as expected.
The text was updated successfully, but these errors were encountered:
Set flag on RSA keys of deprecated RSA SHA1 support when loading
keys based on server version of the transport. This ensures keys
are properly flagged. Flag name has been updated to provide context
on usage.
Version matching on the OpenSSH server version has also been updated
to handle customized naming in the version string (as seen in the
Windows port) and to properly handle when no match is found.
Fixeshashicorp#12344hashicorp#12408hashicorp#12381
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Vagrant version
2.2.16
Host operating system
Windows 10 x64
Guest operating system
Windows 10 x64
Debug output
Expected behavior
Vagrant should continue bringing up the machine.
Actual behavior
Vagrant errors out with above stacktrace.
This is because the regex in
vagrant/lib/vagrant/patches/net-ssh.rb
for matching the OpenSSH version is not compatible with the version string of the build in OpenSSH server in Windows. 'OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2'Changing the regex to something like
/OpenSSH_.*(?<version>\d+\.\d+).*/
makes vagrant work as expected.The text was updated successfully, but these errors were encountered: