Installed openssh in ubuntu and was able to access vagrant. #config.vm.network "private_network", type: "dhcp" #<- so is this #config.vm.network "forwarded_port", guest: 2222, host: 2222 # Remote server #<-this is commented because it didn't work, and vagrant's startup already specifies that it's forwarding port 22 to port 2222. # Eg: config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"Ĭonfig.vm.network "forwarded_port", guest: 8000, host: 8000 # Web AppĬonfig.vm.network "forwarded_port", guest: 9000, host: 9000 # Remote server # 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. Desktop Server IoT Cloud Alternative downloads There are several other ways to get Ubuntu including torrents, which can potentially mean a quicker download, our network installer for older systems and special configurations and links to our regional mirrors for our older (and newer) releases. 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.
0 Comments
Leave a Reply. |