How to use an sshkey protected with a passphrase

13 views
Skip to first unread message

Christophe dCPM

unread,
Mar 1, 2018, 2:54:26 PM3/1/18
to parallel-ssh
Hello,

I'm trying to create an SSHClient using a key that is protected by a passphrase.
From the code I've read, it seems that if pkey and password are specify to the constructor of SSHClient, the password is used as passphrase for the key.

Problem is I always get an AuthenticationException. So it seems the passphrase is not used for some reason.
Am I missing something ?
Reply all
Reply to author
Forward
0 new messages