Kleber Bernardo
Kleber Bernardo

Reputation: 193

How to connect with privateKey and certificate in Rebex

I have the ssh command:

$ssh -i cert.pub -i private_rsa [email protected]

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?

I currently have this code:

ssh.Login(userName, password, new SshPrivateKey(keyPath, keyPassphase))

Best regards!

Upvotes: 0

Views: 381

Answers (0)

Related Questions