I get Renci.SshNet.Common.SshOperationTimeoutException when using SftpClient, currently i only able to use SshClient, is there a way to download and upload file using SshClient? Could any one shed some light on this?
I tried ftp 10.101.10.10 in window command prompt, it works flawlessly. File is 1KB only.
//this code gives Renci.SshNet.Common.SshOperationTimeoutException
using (var sftp = new SftpClient("10.101.10.10", "user", "passcode"))
{
sftp.Connect();
sftp.Timeout = new TimeSpan(0, 0, 60);
sftp.Disconnect()
}
//This code work!
using (var client = new SshClient("10.101.10.10", "user", "passcode"))
{
client.Connect();
//i did tried with some other list file command here, it work also, but i don't know how to download and upload file
client.Disconnect();
}