Re: Error connecting with private key authenticati (General questions)
Hi,
Which line produce such error? Maybe your private key has password. In that case you should add it also in Load Method line.
Just like in my sample:
[code]dlx1 = new WeOnlyDo.Client.FtpDLX();
key = new WeOnlyDo.Security.Cryptography.KeyManager();
key.Load( c:\private.txt , password );
dlx1.Hostname = your.hostname ;
dlx1.Authentication = WeOnlyDo.Client.Authentications.PublicKey;
dlx1.Protocol = WeOnlyDo.Client.Protocols.SFTP;
dlx1.Login = your.login ;
dlx1.PrivateKey = key.ToXmlString(WeOnlyDo.Security.Cryptography.SSHKeyTypes.RSAKey, true); //(if you are using DSA key, change RSAkey to DSAkey.)
dlx1.Blocking = true;
dlx1.Connect();[/code]
If problem persist, is there any chance you can send us your private key so we can test it on our side? You can send it ti techsupport@weonlydo.com
Drazen
Complete thread:
- Error connecting with private key authentication - bi_dev, 2008-10-23, 21:40
- Re: Error connecting with private key authenticati - woddrazen, 2008-10-23, 21:47
- Re: Error connecting with private key authenticati - bi_dev, 2008-10-24, 01:22
- Re: Error connecting with private key authenticati - woddrazen, 2008-10-24, 09:08
- Re: Error connecting with private key authenticati - Ed Eells , 2009-05-14, 14:16
- Re: Error connecting with private key authenticati - woddrazen, 2009-05-14, 15:02
- Re: Error connecting with private key authenticati - Ed Eells , 2009-05-14, 14:16
- Re: Error connecting with private key authenticati - woddrazen, 2008-10-24, 09:08
- Re: Error connecting with private key authenticati - bi_dev, 2008-10-24, 01:22
- Re: Error connecting with private key authenticati - woddrazen, 2008-10-23, 21:47