oracle / vagrant-projects

Vagrant projects for Oracle products and other examples
Universal Permissive License v1.0
930 stars 473 forks source link

Unable to ping the Linux machine from Host Windows Cmd #494

Open satyaoradba opened 9 months ago

satyaoradba commented 9 months ago

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.

I disabled Firewall yet I see the error I am able to connect to it via vagrant ssh

Putty-network error

PaulNeumann commented 9 months ago

@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.)