Re: Error connecting with private key authenticati - WeOnlyDo Discussion board

Re: Error connecting with private key authenticati (General questions)

by woddrazen, Friday, October 24, 2008, 09:08 (5873 days ago) @ bi_dev

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: