Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've opened a reverse shell to my remote server to tunnel port 9000 to my local machine like this ssh -R 9000:localhost:9000 you@remote-php-web-server.com but but it doesn't work. The reverse shell seems to work because I can access my remote machine but netstat -an on my virtual machine list this line:

 tcp        0      0 0.0.0.0:9000            0.0.0.0:*               LISTEN     

What does this mean? For xdebug to run I need 127.0.0.1:9000 LISTEN? Why doesn't it work in my VMware? When I use Linux it works? In VMware I've forwarded port 9000 to my host because I wanted to debug from my host, too?

share|improve this question

closed as unclear what you're asking by Jeff Schaller, sam, Archemar, Kusalananda, slm Jul 19 at 9:09

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
How many machines are involved? You mention a remote machine, and a local machine, and a virtual machine, and a host. What is the host of the virtual machine? Where is xdebug running and where is the program it's debugging running? What operating systems are running on the machines involved? – Gilles May 3 '12 at 23:33
    
@Gilles: It seems that I didn't compile xdebug with the correct php header. I need to verify it with my virtual machine again. – Betterdev May 4 '12 at 4:53