Answer the question
In order to leave comments, you need to log in
How to connect phpstorm to xdebug via ssh tunnel?
My project is deployed on a remote server, which is being worked on via ssh (you can't deploy it locally).
I need to somehow connect phpStorm to xdebug via ssh to debug the project, is it possible?
I searched through everything I can in the phpstorm settings, but I did not find anything related to ssh-xdebug.
Remote server configuration
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_handler="dbgp"
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9001
xdebug.remote_mode=req
xdebug.idekey="PHPSTORM"
Answer the question
In order to leave comments, you need to log in
Easy, ssh forward port 9001 from the remote machine to the local machine.
In PHPStorm settings specify xdebug connection to 127.0.0.1 port 9001.
Profit
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question