2

I am currently using a reverse SSH tunnel

ssh [email protected] -R 9000:localhost:9000

to forward Xdebug (a PHP debugging tool) packets from my server to my local machine. I also have the feature xdebug.remote_autostart=1 so that any site I visit (including AJAX calls) on myserver.com forwards a Xdebug packet.

However, if I don't want to currently debug PHP and I'm not listening to port 9000 on my local machine, then my SSH session gives the warning

connect_to localhost port 9000: failed.

Since I browse through a lot of pages on myserver.com, my bash shell will easily fill up with hundreds of these messages.

So is there a way to hide these warning messages?

1 Answer 1

3

ssh -q seems to have done the trick. It now ignores the connect_to localhost port 9000: failed., but if you have other terminals with other ssh sessions to the same host, then you'll need to restart them with the -q flag too.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .