Skip to content

Instantly share code, notes, and snippets.

@damonp
Created October 13, 2014 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damonp/497e7c613a3ce313c523 to your computer and use it in GitHub Desktop.
Save damonp/497e7c613a3ce313c523 to your computer and use it in GitHub Desktop.
Shell script to create ssh port forwarded tunnel to remote server for bitcoind rpc access.
#!/bin/bash
# $Id: tunnel_bitcoind.sh 13-Oct-14 16:02:39 $
#
# Shell script to create ssh port forwarded tunnel to remote server for
# localhost bitcoind rpc access.
#
# This script is not supported in any way. Use at your own risk.
#
if [ "$#" -lt 1 ]; then
echo "Usage: `basename $0` user@host";
exit 1
fi
ssh -fNg -L 8333:127.0.0.1:8333 $1 -p 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment