Re: ssh2_tunnel
| From: | Gerardo Benitez | Date: | Tue, 17 Feb 2009 12:28:25 +0000 |
| Subject: | Re: ssh2_tunnel | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-45963@lists.php.net to get a copy of this message | ||
Hi Gevorg,
this is a example
ssh -L localPort:remoteServer:remotePort username@tunnelServer
this is:
ssh -L 13306:remoteServer:3306 username@tunnelServer
the localPort is where you will connect your mysql client.
Regards
On Tue, Feb 17, 2009 at 9:52 AM, Gevorg Harutyunyan <gevorg.ha@gmail.com>wrote:
> Hi ,
>
> Please help me to connect mysql on remote server using SSH tunnel.
> I want to use ssh2_tunnel function, but didn't find any sample with that
> function.
>
> --
> Best Regards,
> Gevorg Harutyunyan
>
--
Gerardo Benitez