Re: Syncing local and remote database (General questions)
Hi Ketan,
This code show how to connect to remote server and listen remote servers port 3000 on local port 3000.
---------------------------
Private Sub Form_Load()
Set tunnel1 = New wodTunnelCom
tunnel1.HostName = your_server
tunnel1.Login = login
tunnel1.Password = password
tunnel1.Protocol =SSHAuto
tunnel1.Port = 22
tunnel1.Connect
End Sub
Private Sub ssh_Connected()
tunnel1.Channels.Add LocalListen, 127.0.0.1 , 3000, 0.0.0.0 , 3000
tunnel1.Channels.StartAll
End Sub
---------------------------
Hope this helps.
Regards,
Drazen
Complete thread:
- Syncing local and remote database - Ketan, 2006-04-07, 21:04
- Re: Syncing local and remote database - wodDrazen, 2006-04-07, 21:38
- Re: Syncing local and remote database - Ketan, 2006-04-07, 21:38
- Re: Syncing local and remote database - Ketan, 2006-04-07, 21:58
- Re: Syncing local and remote database - woddrazen, 2006-04-07, 22:38
- Re: Syncing local and remote database - Ketan, 2006-04-08, 22:57
- Re: Syncing local and remote database - wodDrazen, 2006-04-09, 01:01
- Re: Syncing local and remote database - Ketan, 2006-04-09, 02:21
- Re: Syncing local and remote database - wodAlan, 2006-04-09, 03:02
- Re: Syncing local and remote database - Ketan, 2006-04-09, 09:16
- Re: Syncing local and remote database - wodAlan, 2006-04-09, 14:20
- Re: Syncing local and remote database - Ketan, 2006-04-09, 09:16
- Re: Syncing local and remote database - wodAlan, 2006-04-09, 03:02
- Re: Syncing local and remote database - Ketan, 2006-04-09, 02:21
- Re: Syncing local and remote database - wodDrazen, 2006-04-09, 01:01
- Re: Syncing local and remote database - Ketan, 2006-04-08, 22:57
- Re: Syncing local and remote database - woddrazen, 2006-04-07, 22:38
- Re: Syncing local and remote database - Ketan, 2006-04-07, 21:58
- Re: Syncing local and remote database - Ketan, 2006-04-07, 21:38
- Re: Syncing local and remote database - wodDrazen, 2006-04-07, 21:38