Changeset 1240

Show
Ignore:
Timestamp:
03/13/10 16:01:00 (5 months ago)
Author:
Gary
Message:

unxsBind sshTunnel.sh enhanced and commented tests ok.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/unxsBind/tools/sshTunnel.sh

    r1239 r1240  
    11#/bin/bash 
    22 
    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# 
    45#Note that the remote MySQL server will most likey need a GRANT ALL for  
    56#the userbelow@at-server-itself since MySQL will see the connection as TCP from 
    67#it's own IP. And not use the socket. 
    78# 
    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# 
    912 
    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