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?
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) ?
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...
So have the following now:
If DeployClient.IsConnected Then
Dim fPort_1 As New ForwardedPortRemote("localhost", 3333, "tunnel_address", 33)
Catch ex As Exception
MessageBox.Show(ex.ToString(), "SSH Exception", MessageBoxButtons.OK, MessageBoxIcon.Error)
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!!