Created
October 13, 2014 21:07
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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