This project is read-only.

RemovePortForward Method not working.

Jan 22, 2013 at 5:49 PM

Hello,

I am trying to run the RemovePortForward Method right before disconnect the client. However I am getting: "Public member 'RemoveFowardPort' on type 'SshClient' not found.".  Here's a sample of what is causing this.

 

client.Connect()


        client.AddForwardedPort(port)

        port.Start()

'connection comand/stuff ..blah blah

  port.stop()
        client.RemoveFowardPort(port)  '<==GETTING MESSAGE
        client.Disconnect()

Any help would be great!

 

 

 

Jan 23, 2013 at 1:51 PM

Hi,

 

How do you use it?

It seems to be spelling error since there is no such method "RemoveFowardPort" but "RemoveForwardedPort".

 

Hope it helps.

 

Thanks,

Oleg