Cannot connect to LOCALHOST SSH portforward

Written by James McDonald

September 5, 2023

Trying to connect my browser to a web server accessible over an SSH tunnel by connecting to http://localhost:8200 and I get.

I know the remote Web Server is running and the SSH tunnel is working. So what is the problem?

Notice the output of ping localhost it is resolving an IPv6 Address.

The solution is to connect using http://127.0.0.1:8200 and force the Browser to use IPv4

Sample SSH Config with a localhost port forward to the other host at the other end of the tunnel

# ~/.ssh/config
# Azure
Host azure
    User rupert
    HostName 1.4.5.6
	LocalForward 8200 127.0.0.1:8200


0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...

Ubuntu on Hyper-v

It boils town to installing linux-azure # as root or sudo apt-get update apt-get install linux-azure...