Changeset 1240
- Timestamp:
- 03/13/10 16:01:00 (5 months ago)
- Files:
-
- 1 modified
-
trunk/unxsBind/tools/sshTunnel.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/unxsBind/tools/sshTunnel.sh
r1239 r1240 1 1 #/bin/bash 2 2 3 #Setup a tunnel to not have to deal with MySQL SSL certs etc. 3 #Setup a background tunnel to not have to deal with MySQL SSL certs etc. 4 # 4 5 #Note that the remote MySQL server will most likey need a GRANT ALL for 5 6 #the userbelow@at-server-itself since MySQL will see the connection as TCP from 6 7 #it's own IP. And not use the socket. 7 8 # 8 #Not sure if ssh can use a socket on the remote sice of the -L 9 #Note that this example will only work with ssh keygen setup pwd'less connections 10 #for the user in question. In this case root. 11 # 9 12 10 /usr/bin/ssh -f -N -L 3307:node2vm:3306 root@node2vm 13 #We specifcally bind to 127.0.0.1 and not use IPv6 14 /usr/bin/ssh -4 -f -N -L 127.0.0.1:3307:node2vm:3306 root@node2vm
