How to connect with privateKey and certificate in Rebex

217 Views Asked by At

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!

0

There are 0 best solutions below