by ErTanu » Thu Jun 05, 2014 9:15 pm
Yes I am connecting to the server via SFTP.
My code looks like:
SecureFTPConnection sftp = new SecureFTPConnection();
sftp.ServerAddress = ftpBaseIP;
sftp.UserName = ftpUsername;
sftp.Password = ftpPassword;
// set the protocol to SCP
sftp.Protocol = FileTransferProtocol.SCP;
if (sftp.IsConnected)
sftp.Close();
sftp.Timeout = 0;
sftp.Connect();
string[] args = { "tanutest" };
sftp.InvokeCommandSSH(new Uri("D:/Temp/ConsoleApplicationForFTP.exe").AbsolutePath, args);
Am i missing something here.
Is there any mismatch in syntax.
Also how to check that the SFTP server permits exec'ing of binaries, and as mentioned above i need to use D:/Temp of FTP Server.
Thanks,
Tanu