How to connect with privateKey and certificate

0 votes
asked Jun 29 by Kleber Bernardo (160 points)

Hi Everyone!

I have the ssh command:

ssh -i cert.pub -i private_rsa user@host.net

I'm using Rebex.Net.Ssh and I'd like to know how call Login method with Certificate (cert.pub) and PrivateKey (private_rsa), just like command above.

This is possible?

Best regards!

1 Answer

+1 vote
answered Jun 29 by Lukas Pokorny (113,730 points)
selected Jun 29 by Kleber Bernardo
 
Best answer

Is this OpenSSH's 'ssh' command? (If unsure, run "ssh -V" to find out.)

If it is, then it means that the cert.pub file contains an OpenSSH certificate. Unfortunately, Rebex libraries don't support OpenSSH certificates. We support X.509 certificates, but those are not supported by OpenSSH.

commented Jun 29 by Kleber Bernardo (160 points)
Hi Lukas,

ssh -V
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
commented Jun 29 by Lukas Pokorny (113,730 points)
That means you are actually using OpenSSH's proprietary certificates, which are unfortunately not supported by Rebex components.
...