vagrant-projects
vagrant-projects copied to clipboard
Unable to ping the Linux machine from Host Windows Cmd
Linux machine provisioned successfully but I am unable to ping it from Windows(host) and unable to connect to it from putty
From Host Machine we see
C:\Users\nvsn>ping 192.168.225.102
Pinging 192.168.225.102 with 32 bytes of data: Request timed out. Request timed out. Request timed out.
From Putty we see
Putty Fatal error Network error: Connection Timed Out.
-
Host OS: [Windows 10]
-
Vagrant version: [2.3.4]
-
Vagrant provider:
- For VirtualBox:
- VirtualBox version: [7.0.4r154605]
- For VirtualBox:
-
Vagrant project: [https://github.com/oracle/vagrant-projects/tree/main/OracleDatabase/19.3.0]
I disabled Firewall yet I see the error I am able to connect to it via vagrant ssh
@satyaoradba It looks like you've added a public network with the IP address 192.168.225.102 to the Vagrantfile. This isn't needed for connecting to the VM with either database tools or PuTTY.
PuTTY can use the localhost IP address 127.0.0.1 to connect to the VM. However, the Vagrant SSH private key file needs to be converted to a PuTTY-compatible ppk file first. There's a YouTube tutorial that shows all the steps here. (One update to the video: For the most recent versions of PuTTY, the path to the private key file is entered on the Connections -> SSH -> Auth -> Credentials screen, rather than the Connections -> SSH -> Auth screen.)