I found out what was causing the issue. I had a bad timeout number set. I adjusted it to a better value and now it is working instantly.
- JCornelison
.Open()
to create a connection. Then when I try to grab a file, it takes about 20 seconds.
DebugLogPath
file, it looks like there is a lot of looping going on. Any suggestions on what may be causing the issue?
SessionOptions sessionOptions = new SessionOptions
{
Protocol = Protocol.Sftp,
HostName = _host,
UserName = _user,
PortNumber = _port,
SshHostKeyFingerprint = _fingerPrint,
SshPrivateKeyPath = _localKeyPath,
TimeoutInMilliseconds = _timeOut
};