A
A
Adil Kumashev2021-07-21 11:02:26
System administration
Adil Kumashev, 2021-07-21 11:02:26

Why can't forward a port from the local machine to a remote machine for debugging with Xdebug?

It is not possible to forward port 9000 from the local machine to the remote machine to set up debugging code using Xdebug over an SSH tunnel.
I get the following error when I type ssh -t -T -R 9000:127.0.0.1:9000 [email protected] :

ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
[email protected]: Permission denied (publickey,password).


In the config 20-xdebug.ini along the path " /etc/php/7.3/fpm/conf.d ":

zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.max_nesting_level=300
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question