Use SSH to forward remote ports
The first port number is what you want the port to open on your local machine.
The hostname and port after the first colon is the source port relative to the remote machine.
ssh -N -L 11211:localhost:11211 remote_hostname
Redis
For example, forward remote redis port to your local port 1234.
ssh -N -L 1234:localhost:6379 user@hostname
Now you have a virtual redis on your local running at port 1234.