using (Stream stream = assembly.GetManifestResourceStream(resourceName))
{
await client.ConnectAsync(host, port); // about 15 sec here
await client.LoginAsync(username, new Rebex.Net.SshPrivateKey(stream)); // and 2 sec here
}
When I'm trying to connect it takes about 17 seconds to connect, with WinSCP it takes about 4. Is there is something that I can do?