Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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:
# 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