Change SSH port

Feb 25, 2012 at 6:17 PM

Hi,

How can i change the default SSH port - seems like it is a readonly property - error in bold below - is this possible to configure ?

var connectionInfo = new PasswordConnectionInfo("192.168.1.31", "user", "pass");           
connectionInfo.Timeout = TimeSpan.FromSeconds(10);
connectionInfo.Port = 56;

thanks,

Damo642

 

Coordinator
Feb 27, 2012 at 1:20 PM

You can provide port in the constructor:

var connectionInfo = new PasswordConnectionInfo("1.1.1.1", 1234, "test", "aaa");

Thanks,

Oleg