Re: Error connecting with private key authenticati (General questions)
hello ,
thanks for the quick response, the code changes did not change the outcome, to i started down the path of using ftpdlx component
here is my code, and i am now getting an error saying 'Failed to import private key', the same key works with other clients, can you see if i am doing something wrong ?
Ssh1.Hostname = TextBox2.Text;
Ssh1.Protocol = Protocols.SFTP;
Ssh1.Port = 22;
Ssh1.Login = TextBox3.Text;
Ssh1.Authentication = Authentications.PublicKey;
WeOnlyDo.Security.Cryptography.KeyManager km = new WeOnlyDo.Security.Cryptography.KeyManager();
WeOnlyDo.Security.Cryptography.SSHKeyTypes type = km.Load(textBox4.Text);
Ssh1.PrivateKey = km.PrivateKey(type);
PrintText( Connecting....
);
Ssh1.Connect();
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