Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3862

Load .ppk without passphrase

$
0
0

I have two scenarios:
1. Have .ppk with a Passphrase.
2. Have only .ppk WITHOUT a Passphrase.

For the first scenario, this works:
privateKey = new SshPrivateKey(PrivateKeyPath, PrivateKeyPassPhrase);
_sftp.Login(UserName, privateKey)

But for the Second Scenario, I don't know how to load the private key without a passphrase and login.

Please advise.

Thanks.


Viewing all articles
Browse latest Browse all 3862

Trending Articles