Issue
I am setting up a Virtual Machine node.js server at Google Cloud Platform. I have set up SSH keys so that I can log into my VM. I can successfully log into my VM using SSH-in-browser and start my server.
I can't access my public IP address through Chrome. I get this message:
This site can’t provide a secure connection
.
When I try to connect to the IP within SSH-in-browser, I get the following:
$ curl -vso /dev/null --connect-timeout 5 34.68.254.120:8080
* Trying 34.68.254.120:8080...
* connect to 34.68.254.120 port 8080 failed: Connection refused
* Failed to connect to 34.68.254.120 port 8080: Connection refused
* Closing connection 0
I'm new at this. Any ideas would be appreciated. Thanks!
Edit1: Some more details --
- Linux VM
- port 8080 ingress is open on the firewall
- I'm using OSLogin (`enable-oslogin = TRUE' 'enable-oslogin-sk = FALSE')
- I can successfully log into console with both SSH-in-Browser and PuTTY, and I can start my server on port 8080
- In both, I get the error above when I try to connect to the IP address
Solution
EDIT:
Follow below steps to fix “This Site Can’t Provide a Secure Connection” Error :
This error typically indicates a problem with either your browser’s configuration or the SSL certificate on your site.
1) Your local environment doesn’t have an SSL certificate.
2) Outdated SSL caches in the browser : (This is one of the more popular causes. Web browsers store SSL certificates in a cache, much like other data. This means they don’t have to verify the certificate every time you visit a site, which speeds up browsing. However, if your SSL certificate changes and the browser is still loading an older, cached version, it can cause this error to pop up).
3) Incorrect time and date settings on your computer.
4) Rogue browser extensions.
5) Overzealous antivirus software.
6) An invalid or expired SSL certificate.
If your firewall rules prevent external access:
Check your firewall rules with the following command:
gcloud compute firewall-rules list
with this, you can review the VPC where the VM instance was migrated; and if it has allowed the Ingress TCP: 22 Port. If this firewall rule is missing, you can add the firewall rule in the GCP console -> VPC Networks ->select your VPC network _Click on the firewall rules to double check that the tcp: 22 port is allowed.If the issue still is ongoing after checking the firewall rules, you can follow this guide to start troubleshooting SSH connection.
Answered By - Veera Nagireddy Answer Checked By - Candace Johnson (WPSolving Volunteer)