Take the 2-minute tour ×
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.

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
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. –  Phpdna May 4 '12 at 4:53

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.