The default timeout is 60 seconds - this should be more than enough even for very slow servers. This value is configurable using Sftp
object's Timeout
property that accepts a milisecond value:
C#:
Sftp client = new Sftp();
client.Timeout = 120*000; //set timeout to 120 seconds
client.Connect(hostname);
VB.NET:
Dim client As New Sftp
client.Timeout = 120*000 //set timeout to 120 seconds
client.Connect(hostname)