public
Last active

  • Download Gist
gistfile1.txt
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.