NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Debug via SSH tunnel - there is no listetning 7869 port


Joined: 19 Nov 2009
Posts: 3
Reply with quote
Hello.

I'm trying to use remote debugging via SSH tunnel. I installed dbg on server, I check that infinite times, I use Putty, I create tunnel from 7869 to localhost:7869, I check that infinite times. I restarted Apache on server infinite times.

But! There is no "7869 LISTENING" in netstat -an. I red about "check that you have 7869 LISTENING in netstat -an" many times, but I didn't see what to do if I don't have that happy lines.

What should I do if I don't have 7869 LISTENING?

Thank you.
View user's profileFind all posts by race1Send private message
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
It may be a case that port forwarding via SSH is disabled on the server. In your /etc/ssh/sshd_conf, check that the following is set:
Code:
AllowTcpForwarding yes

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website


Joined: 19 Nov 2009
Posts: 3
Reply with quote
anno wrote:
It may be a case that port forwarding via SSH is disabled on the server. In your /etc/ssh/sshd_conf, check that the following is set:
Code:
AllowTcpForwarding yes

No, it's enabled, and it perfectly works for MySQL - I use local app and connect to server databases via SSH tunnel.

I installed dbg to server, add config lines to php.ini, restarted Apache, and checked that phpinfo() says there is debugger enabled. Then I started PhpEd, set debugging via SSH tunnel, then connected to server via Pyttu that created tunnel. And nothing happened. No 7869 LISTENING, and of course debug session can't start. Sad
View user's profileFind all posts by race1Send private message
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
If netstat is not reporting listing on port 7869, then TCP forwarding is not working for some reason. It will nothing to do with PHP, Apache or PhpEd. It is an issue with SSH and/or the tunnel you set up Confused

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website


Joined: 19 Nov 2009
Posts: 3
Reply with quote
Sorry, my mistake. I forgot to check Remote radiobox when I was creating tunnel in Putty...

So, when you create tunnel in Putty, check Remote radiobox. Also here: http://forum.nusphere.com/dbg-not-working-with-ssh-tunnel-t6544.html
View user's profileFind all posts by race1Send private message
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
Glad to hear it's working now Wink

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website
Debug via SSH tunnel - there is no listetning 7869 port
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic