2/25/2023 0 Comments Virtualbox windows 11 ubuntu![]() ![]() # 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. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |