ssh port forwarding

I have a debug server running on a private port for an app. I don’t see how to pass options to ssh such as to port-forward a private port in the app (like ssh -fNL 3000:localhost:9091 to access the metrics port).

You can use fly proxy 3000:9091 -a yourapp. If you have more than one instance, you can add -s to select the one you’re interested in.

1 Like

Should this work with arbitrary services? I have an nREPL TCP socket that does not establish properly with the fly proxy command as described above. I can connect and use it with fly ssh console by installing the necessary tools to the VM but would be nice to have the ability to do it remotely via WireShark.

Thanks! :slight_smile: