[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SSH Forwarding
You can use daemontools for this.
I have several tunnels running this way.
my "run" file for a mysql tunnel:
#!/bin/sh
exec ssh -i /root/.ssh/id_dsa -L 3306:dpe2:3306 -N -l mabini dpe2 2>&1
dpe2 and mabini are the endpoints of the tunnel, with dpe2 being
the machine with the mysql server and mabini the client.
There is also a user on dpe2 with the username mabini (-l mabini)
so that I dont have to log in to root on the mysql server.
Lars Hansson