
# To limit access to the local network, add "host_ip".Ĭonfig.vm.network "private_network", type: "dhcp" # The below ports are accessible to all machines on the same network. Vagrant ssh-config config.vm.box = "generic/ubuntu2010" I usually use WSL2 for programming in linux, but my particular application requires that it runs in vagrant in ubuntu. Inside Ubuntu I am able to simply type "vagrant ssh" and it will connect to the ssh without any delay. I've tried getting private key, I've tried all variants of ssh commands that I could find, but it's simply not working.

The problem arises when I attempt to ssh into vagrant (2222->2222) putty gives an error for connection refused, windows cmd gives "kex_exchange_identification: read: Connection aborted"

I have a port forwarded (8000 -> 8000) in virtual box to access the web interface of the app I need, and I can access it from my browser on Firefox in Windows 11. I'd like to use the Windows 11 host machine for the CV since it needs a lot of processing power, and communicate with a python app in vagrant currently running using SSH, since it's not a very resource intensive app.

I am doing a computer vision project, and I have Vagrant VM on Ubuntu 20.04 VM on VirtualBox on Windows 11 Host Machine.
