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

Closed Issue: SshAuthenticationException : User cannot be authenticated [1547]

$
0
0
Getting SshAuthenticationException : User cannot be authenticated when trying to authenticate with username/password+private key(dsa, 2048bits w/o passphrase)

```
var connectionInfo = new ConnectionInfo(host, 22, username, new PasswordAuthenticationMethod(username, password),
new PrivateKeyAuthenticationMethod(username, new PrivateKeyFile(File.OpenRead(key_path))));

using (var sftp = new SftpClient(connectionInfo))
{
sftp.Connect();
```
Comments: Fixed in 24719 commit

Viewing all articles
Browse latest Browse all 1026

Trending Articles



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