May 2, 2012 at 7:59 PM
Edited May 3, 2012 at 2:20 AM
|
Awesome, thanks Paul. Will try it out.
Would you happen to know anything regarding the tunneling issue?
---
UPDATE 1:
Wow, expect works like a charm now! Thanks for that tip Paul!
However no progress on the tunneling front.
Tried the following to no avail as a sent command:
"ssh -A -L 2222:address2:22 address1"
Is there any tunnel support in SSH.NET?
What initial setup commands does it support also (Ex: how would I add the -A ssh flag to the initial host address) ?
---
UPDATE 2:
Does anyone know the equivalent to the below C# in VB?
var port = client.AddForwardedPort<ForwardedPortRemote>(8082, "host to be forwarded", 80);
The converter gives me:
Dim port = client.AddForwardedPort(Of ForwardedPortRemote)(8082, "host to be forwarded", 80)
Which does not work...
---
UPDATE 3:
So have the following now:
If DeployClient.IsConnected Then
Try
Dim fPort_1 As New ForwardedPortRemote("localhost", 3333, "tunnel_address", 33)
DeployClient.AddForwardedPort(fPort_1)
fPort_1.Start()
Catch ex As Exception
MessageBox.Show(ex.ToString(), "SSH Exception", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End If
Can someone explain two things to me?
1. Should I be using ForwardedPortRemote or ForwardedPortDynamic to perform the below scenario:
Initial SSH Connection to HostAddress 1 - Master (New SshClient) ---> [tunnel] to HostAddress 2 ---> Exec CMD
2. How would I then apply the below to one of the above? (normal SSH command in Putty)
ssh -A -L 2222:address2:22 address1
Current Host Port? ^ ^ Target Host Port?
Thanks to anyone for any help, much appreciated!!
|