SSH port forwarding does not work for websocket

I am running a web service on server A: 8890, this includes the normal HTTP service and websocket services. I am trying to configure forwarding of SSH ports from serverB to serverA, so I can access ServerA service through an SSH tunnel.

Here is my command: "ssh -f user @serverA -i user.pem -L 2000: serverB: 8890 -N"

When I connect to ServerB: 2000, I can see all the usual web services, but the websocket part is not working.

Any idea how to solve this?

thank

+4
source share
1 answer

I believe your tunnel should be:

ssh -f user @serverA -i user.pem -L 2000: serverA: 8890 -N

+3

All Articles