Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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  *               LISTEN     

What does this mean? For xdebug to run I need 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
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.