Trouble SSH Tunneling to remote server
Your problem is you are sending the http header "Location: localhost" which means if the destination webserver is using virtualhosts, it will try to lookup for website "localhost" and not for website "vendorhostexample.com"
One way is as Ryan pointed out to modify your hosts file and tell your machine that vendorhostexample.com it's on 127.0.0.1, that way when you type it in your browser you will go through the tunnel with the right "Host:" http header set.
Another way it's installing an extension for your browser to change the Host header like this one for firefox.
PhpStorm ssh tunnel to remote server - anything to configure on remote server?
Accordingly to your xdebug log you have an error in settings there rather than in SSH.
Based on your xdebug section of phpinfo()
out put you need to set xdebug.remote_connect_back = 0
(or off
-- same meaning). Also make sure that xdebug.remote_host = localhost
.
With your current settings xdebug tries to connect back to the TCP 9000 on IP where request came from while for SSH tunnelling to work you need it to connect to local TCP 9000 (and SSH will tunnel such connection back to your local machine bypassing firewall/router).
Related Topics
Reliably Kill Sleep Process After Usr1 Signal
Can't Add File to Git Repository But Can Change/Commit
Exactly When Tasklet Runs After It Is Schedule by Isr
Using Flycheck/Flymake on Kernel Source Tree
How to Install Xclip on an Ec2 Instance
How to Check If a String Contains a Special Character (!@#$%^&*()_+)
Linux Script with Netcat Stops Working After X Hours
What Are Best Parameters to Run Imagemagick to Convert Low Quality PDF to Images (For Ocr)
How to Install Oracle 11G on Linux Without X
How to Recursively Unzip Nested Zip Files
How Linux Scheduler Schedules Processes on Multi-Core Processors
What Is an Interface Identifier
Unattended Install of Krb5-User on Ubuntu 16.04
How to Test My Bash Script on Older Versions of Bash