hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.25k stars 4.43k forks source link

vagrant share --ssh not working #13188

Open huanghe314 opened 1 year ago

huanghe314 commented 1 year ago

Debug output

https://gist.github.com/huanghe314/a262e2a2fad3d7a0cbac07655edc925a

Expected behavior

successfully create share session.

Actual behavior

showing ruby gem error

Reproduction information

Vagrant version

vagrant version: 2.3.6 vagrant-share version: vagrant-share (2.0.0, global)

Host operating system

windows 11

Guest operating system

hashicorp/bionic64, Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-58-generic x86_64)

Steps to reproduce

  1. vagrant share --ssh

Vagrantfile

# Copy-paste your Vagrantfile here. Remove any sensitive information such as passwords, authentication tokens, or email addresses.
Vagrant.configure("2") do |config|
    config.vm.box = "hashicorp/bionic64"
    config.vm.box_version = "1.0.282"
    config.vm.network :forwarded_port, guest: 80, host: 4567
    config.vm.provision :shell, path: "bootstrap.sh"
end