Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant ssh terminal keeps freezing #12811

Open
ahofstetter opened this issue Jul 12, 2022 · 1 comment
Open

Vagrant ssh terminal keeps freezing #12811

ahofstetter opened this issue Jul 12, 2022 · 1 comment

Comments

@ahofstetter
Copy link

I am having the EXACT same issue as
#6845
which is closed so I am unable to comment there

Vagrant version

Vagrant 2.2.19

Host operating system

Mac OS Monterey 12.4

Guest operating system

Ubuntu 18.04

Vagrantfile

Vagrant.configure("2") do |config|

    config.vm.box = "bento/ubuntu-18.04"
    config.vm.hostname = "MyHost"
    config.vm.network "forwarded_port", guest: 80, host: 8080
    config.vm.network :forwarded_port, guest: 22, host: 2223, id: "ssh"
    config.vm.network "private_network", ip: "192.168.56.10"
    config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
    config.vm.provider "virtualbox" do |v|
        v.memory = 10240
        v.cpus = 6
    end
end

I only changed the ssh port in an attempt to resolve the issue. It did not and this is not really needed

Debug output

There is nothing relevant in ~/VirtualBox\ VMs/{container}/Logs/VBox.log when the issue occurs

Expected behavior

I should be able to open an ssh terminal and not have it crash/freeze/become unresponsive

Actual behavior

SSH terminal becomes unresponsive consistently after a few minutes

Steps to reproduce

  1. vagrant ssh
  2. OR ssh vagrant@myhost.com

References

I also noticed that using ssh -i prevented the issue from happening. I have been logged in through ssh for an entire day now and no freezing. I don't even have to reference a valid key file. I can do

ssh -i turds vagrant@myhost.com
Warning: Identity file turds not accessible: No such file or directory.
vagrant@myhost.com's password: 

and enter the password "vagrant" and I am in, with no freezing

@ahofstetter
Copy link
Author

Want to note that I tried 2 other boxes and had the same issue, "generic/ubuntu1804" and "hashicorp/bionic64"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants