Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • but shouldn't ssh think about setting the correct ip? that ip 127.0.0.0.1 is about my pc ... why doesn't ssh change that ip in the ip of the remote server? Commented Feb 17, 2020 at 18:03
  • This is nothing to do with ssh. You are telling your browser to go to 127.0.0.1/whatever, so you browser sets the Host: header in the request to 127.0.0.1. Your browser then goes to your pc. ssh is just used to tunnel the bytes between the endpoints, it doesn't alter them. The closest ssh comes to fixing things is the X forwarding. Commented Feb 17, 2020 at 20:01