Use-SSH-with-proxy - 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] **

Use SSH with proxy
VB code
Dim wodSSH1 As wodSSHCom
Set wodSSH1 = New wodSSHCom

'Set Proxy hostname and Proxy type you want to use.
wodSSH1.ProxyHostname = "your_proxy_hostname"
wodSSH1.ProxyType = ProxyWEBStandard
'ProxyLogin and ProxyPassword are only needed if your Proxy needs authentication.
wodSSH1.ProxyLogin = "your_proxy_login"
wodSSH1.ProxyPassword = "your_proxy_password"
wodSSH1.ProxyPort = 8080

'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

'Set Proxy hostname and Proxy type you want to use.
wodSSH1.ProxyHostname = "your_proxy_hostname"
wodSSH1.ProxyType = WeOnlyDo.Client.SSH.ProxyTypes.ProxyWEBStandard
'ProxyLogin and ProxyPassword are only needed if your Proxy needs authentication.
wodSSH1.ProxyLogin = "your_proxy_login"
wodSSH1.ProxyPassword = "your_proxy_password"
wodSSH1.ProxyPort = 8080

'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();

//Set Proxy hostname and Proxy type you want to use.
wodSSH1.ProxyHostname = "your_proxy_hostname";
wodSSH1.ProxyType = WeOnlyDo.Client.SSH.ProxyTypes.ProxyWEBStandard; 
//ProxyLogin and ProxyPassword are only needed if your Proxy needs authentication.
wodSSH1.ProxyLogin = "your_proxy_login";
wodSSH1.ProxyPassword = "your_proxy_password";
wodSSH1.ProxyPort = 8080;

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