-
TO create a ssh tunnel use
ssh -i <path-to-key-file> user@host -L <local PC port>:<ip address accessed from ssh PC>:<ssh pc PORT>
ssh -i my-private-key.pem user@1.2.3.4 -L 3002:127.0.0.1:3001
- This will make the PORT 3001 in server ith IP address 1.2.3.4 accessible as 3002 in local .