Re: Execute Remote Application using SSH - WeOnlyDo Discussion board

Re: Execute Remote Application using SSH (General questions)

by KG, Friday, August 19, 2005, 17:29 (7035 days ago) @ wodSupport

Complete C# code
SSH Ssh1 = new SSH(); // Initialize new instance
Ssh1.Login = UserID ; // Set your login/username
Ssh1.Password = password ; // Set your password
Ssh1.Encryption = WeOnlyDo.Client.SSH.EncryptionMethods.Auto;
Ssh1.Protocol = SSH.SupportedProtocols.SSH2;
Ssh1.Command = mkdir c:\temp ;
Ssh1.LicenseKey = XYZ ;
Ssh1.Blocking = true;
Ssh1.Port = 22;
Ssh1.AllocatePty = false;
Ssh1.Connect( servername ); // Windows 2003 Server. Default F-Secure Server Installation.

Even the sample application does not work for the same server. Is it to something with windows firewall?

Thanks,
Karthik

Hmm, in that case I have no more ideas. AllocatePty is made exactly for that purpose, and in all cases it did help. I can't know what's going on. Perhaps F-Secure has some logs that can say what happened?

Can you paste your full code?


Complete thread: