Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Unassigned: SsHAuthenticationException Unhandelled [1960]

$
0
0
Hi,

I am creating a C# application that executes Linux command remotely.

Everything is fine with SSH.NET.

But when I enter wrong password it is not giving proper ERROR, just exception un-handed is the message that I am getting, and also "__No suitable authentication method found to complete authentication__."

But i just want to pop-up with a messagbox that re-enter user, something like that how can I overcome this.


Thanks & Regards
Avinash.
Comments: ** Comment from web user: da_rinkes **

no, no! do not change the code in library

I usually do:
```
_client = new SshClient(res.host, int.Parse(res.port), res.user, res.password);
try
{
_client.Connect();
}
catch (Exception exception)
{
Console.WriteLine(exception);
}
```

Instead of Console.WriteLine you can ask for the password again.
Exceptions are the way SSH.NET reports errors, which is a common way in .Net libraries.


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>