Failed to add SSH key to Jenkins setup

I installed the "Publish over SSH" plugin in Jenkins and would like to transfer several files to the SSH server after each build.

I generated the private key using puttygena passphrase and provided the OpenSSH public key in "authorization_keys" on the SSH server.

Using the generated private key and passphrase, I can log in to the SSH server via PuTTY.

But with Jenkins, I cannot add an SSH key. Getting the error below.

jenkins.plugins.publish_over.BapPublisherException: Failed to add SSH key. Message [Requires cipher "aes256-cbc", but it is not available.

Jenkins configuration

+1
source share
1 answer

( Jenkins) OpenSSH ( ssh-keygen), PuTTY ( PuTTYgen). ssh-keygen PPK OpenSSH.

SO.


PPK ( PuTTY) OpenSSH

PPK, , , OpenSSH ( ssh). - OpenSSH.

$ ssh -i mykey.ppk example.com
Enter passphrase for mykey.ppk:

OpenSSH PuTTYgen ( ):

puttygen mykey.ppk -o mykey.key -O private-openssh

GUI:

  • Open PuttyGen
  • ""
  • β†’ OpenSSH
  • ~/.ssh/id_rsa

: SO answer, Unix SE

+1

Source: https://habr.com/ru/post/1666347/


All Articles