Radhakrishnan M
Radhakrishnan M

Reputation: 21

Apache Mina SSHD Client - Key based authentication - Unable to authenticate to server, using keys generated from puttygen

Ive set up an SSH client with Apache Mina SSHD, to ssh into a linux server using private key generated from puttygen

The key is generated from puttygen and the public key is copied from the puttygen UI, to the authorized_keys files on the server.

The private key is exported in 2 ways

I’m using the following code to parse the keys in my client

Collection<KeyPair> keyPairs  = PuttyKeyUtils.DEFAULT_INSTANCE.loadKeyPairs(null, Paths.get(certFilePath), FilePasswordProvider.of(certFilePassword));

To the above code –

Pls. let me know the right methods to parse a private key generated from putty in my sshd client.

Upvotes: 1

Views: 1291

Answers (0)

Related Questions