I need to do some SFTP operations and I decided to go for the Renci.SshNet dll.
I have been given an SFTP site and to be sure that it works I tried with WinScp. So I login and…
…and I am asked for the password and the connection works properly.
Please notice that I have not full access to the root system so I am automatically moved to the subfolder “Test_Programmazione”
but in short that works
Now when I get to implementing the code using the same credentials
using (var client = new SftpClient("10.95.224.21", 21, "arena01", "xxx"))
{
client.Connect();
}
but after some time I get:
Renci.SshNet.Common.SshOperationTimeoutException: ‘Socket read operation has timed out after 30000 milliseconds.’
and in short it doesn’t get to connect.
Please notice that my firewall is down.
What am I doing wrong?
Thanks for any help
Patrick