Open butschster opened 3 years ago
RoadRunner v2.9 + https://github.com/spiral/roadrunner-services will solve the issue!
Setting up an SSH tunnel for Buggregator to connect with a remote application involves creating a secure connection between a local port and a port on the remote server. Here's how you can set it up:
ssh -R 8000:localhost:8000 -R 9912:localhost:9912 -R 9913:localhost:9913 -R 1025:localhost:1025 username@remote_server_ip
For each port you want to forward from the remote machine to your local machine, use the -R option. Assuming you're receiving logs on the same ports on the local machine:
8000
, 9912
, 9913
, and 1025
8000
, 9912
, 9913
, 1025
). These logs will then be automatically directed through the SSH tunnel to your local Buggregator instance.GatewayPorts
is set to yes
or clientspecified
in sshd_config
).With this setup, your Buggregator instance should now be able to receive logs from the remote application securely over the SSH tunnel.
While Buggregator provides excellent support for debugging local PHP applications, there is currently no native support for debugging remote applications. This limitation requires developers to rely on alternative solutions, or possibly bypass Buggregator altogether when working with remote environments.
I propose adding support for SSH port forwarding in Buggregator. This would allow developers to establish an SSH tunnel from their local machine to a remote server, effectively mapping a local port to a port on the remote server. This would facilitate real-time debugging of applications deployed on remote environments as if they were local.
Key Features:
Information can get from here https://www.ssh.com/academy/ssh/tunneling/example