Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:254765
1 2 3 4 5 6 7 8 9 10 11 12 13
ssh -f remote_user@remote_server -L 6378:remote_server:6379 -N
 
# -f -- backgrounds ssh right before execution of the command
# -L -- Forwards localhost:6378 to remote_server:6379 (encrypted and authenticated)
# -N -- Don't execute a remote command, just forward the port
 
# Start a redis server on remote_server on port 6379:
redis-server
 
# on the local machine telnet localhost 6378
telnet localhost 6378
 
# You are now securely connected to redis on the remote server by connecting to your local port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.