Change-protocol-type-[SSH1-SSH2-SSHAuto-Telnet-Raw] - WeOnlyDo Software example code



All

wodCrypt (12)
wodSSH (10)
wodSFTP (23)
wodSSHServer (1)
wodSSHTunnel (11)
wodSSHpackage
wodSFTPdll

wodSSH.NET (10)
wodSFTP.NET (24)
wodFtpDLX.NET (22)
wodWebServer.NET (10)

wodAppUpdate (13)
wodHttpDLX (8)
wodFtpDLX (22)
wodTelnetDLX
wodFTPServer (3)
wodWebServer (10)
wodVPN
wodXMPP (13)
All ** [Visual Basic] ** [C#] ** [VB.NET] **

Change protocol type (SSH1, SSH2, SSHAuto, Telnet, Raw)
VB code
Dim wodSSH1 As wodSSHCom
Set wodSSH1 = New wodSSHCom

'Protocol property determines which protocol version
'will be used when communicating with the server.
wodSSH1.Protocol = SSH2

'Set server login, password and hostname.
wodSSH1.HostName = "your_hostname"
wodSSH1.Login = "your_login"
wodSSH1.Password = "your_password"
'Connect to server.
wodSSH1.Connect
VB.NET code
Dim wodSSH1 As WeOnlyDo.Client.SSH
wodSSH1 = New WeOnlyDo.Client.SSH

'Protocol property determines which protocol version
'will be used when communicating with the server.
wodSSH1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSH1

'Set server login, password and hostname.
wodSSH1.Hostname = "your_hostname"
wodSSH1.Login = "your_login"
wodSSH1.Password = "your_password"
'Connect to server.
wodSSH1.Connect()
C# code
WeOnlyDo.Client.SSH  wodSSH1;
wodSSH1 = new WeOnlyDo.Client.SSH();

//Protocol property determines which protocol version
//will be used when communicating with the server.
wodSSH1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.Telnet;

//Set server login, password and hostname.
wodSSH1.Hostname = "your_hostname";
wodSSH1.Login = "your_login";
wodSSH1.Password = "your_password";
//Connect to server.
wodSSH1.Connect();