You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try {
// Ensure we are connected and authenticated correctlyawait client.ping().catchError((e) =>throw e);
} catch (e, s) {
// Handle SSH auth errors here
}
Initially, I had:
try {
// Ensure we are connected and authenticated correctlyawait client.authenticated.catchError((e) =>throw e);
} catch (e, s) {
// Handle SSH auth errors here
}
but I was experiencing the same SSHAuthAbortError when I did that.
This sends a keep alive to the server, in addition to waiting for authentication to complete.
could check the version of ssh server
this lib checks SSH2 in meta data received from the server, so if the ssh server is 1.x,SSHAuthAbortError(Connection closed before authentication) will occur
the code can work sometimes,but it will meet err mosttime
E/flutter (22717): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: SSHAuthAbortError(Connection closed before authentication)
The text was updated successfully, but these errors were encountered: