fail to connect by public key - WeOnlyDo Discussion board

fail to connect by public key (wodSFTP / wodSFTP.NET / wodSFTPdll)

by simonasuciu, Wednesday, January 18, 2017, 11:28 (309 days ago) @ Jasmine

Hello!
Thank you for the reply.
I tested this code on two diferent ssh server platform and the result was the same. I think you can also test and debug this code on any ssh server you have, probably with the same result.
When I paste the public key on the server(in .ssh/authorized_keys file), I use the format returned by PublicKeyOpenSSH function(ssh-rsa ...etc), not the one written in the file by PublicKeySave(begins with "----BEGIN PUBLIC KEY-----"). It's OK like that?
Simona


Complete thread: