jenkinsci / publish-over-ssh-plugin

https://plugins.jenkins.io/publish-over-ssh/
117 stars 150 forks source link

Failed to connect and initialize SSH connection: Algorithm negotiation fail #293

Open jmorille opened 1 year ago

jmorille commented 1 year ago

Jenkins and plugins versions report

Environment ```text awt.toolkit : sun.awt.X11.XToolkit com.zaxxer.hikari.pool_number:1 executable-war: /usr/share/java/jenkins.war: file.encoding : UTF-8 file.separator : / java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment java.awt.headless : true java.awt.printerjob : sun.print.PSPrinterJob java.class.path : /usr/share/java/jenkins.war java.class.version: 55.0 java.home : /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-4.el8_5.x86_64 java.io.tmpdir: /tmp java.library.path : /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib java.runtime.name : OpenJDK Runtime Environment java.runtime.version: 11.0.13+8-LTS java.specification.name : Java Platform API Specification java.specification.vendor: Oracle Corporation java.specification.version: 11 java.vendor: Red Hat, Inc. java.vendor.url: https://www.redhat.com/ java.vendor.url.bug : https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%208&component=java-11-openjdk java.vendor.version : 18.9 java.version : 11.0.13 java.version.date: 2021-10-19 java.vm.compressedOopsMode : Zero based java.vm.info : mixed mode, sharing java.vm.name : OpenJDK 64-Bit Server VM java.vm.specification.name : Java Virtual Machine Specification java.vm.specification.vendor: Oracle Corporation java.vm.specification.version: 11 java.vm.vendor : Red Hat, Inc. java.vm.version : 11.0.13+8-LTS jdk.debug : release jetty.git.hash: 1c2636ea05c0ca8de1ffd6ca7f3a98ac084c766d jna.loaded : true jna.platform.library.path : /usr/lib64:/lib64:/usr/lib:/lib:/usr/lib64//bind9-export jnidispatch.path: /var/lib/jenkins/.cache/JNA/temp/jna15499895925652029809.tmp line.separator : mail.smtp.sendpartia: true mail.smtps.sendpartial: true os.arch : amd64 os.name : Linux os.version: 4.18.0-147.5.1.el8_1.x86_64 path.separator: : sun.arch.data.model: 64 sun.boot.library.path: /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-4.el8_5.x86_64/lib sun.cpu.endian : little sun.cpu.isalist : sun.font.fontmanager : sun.awt.X11FontManager sun.io.unicode.encoding : UnicodeLittle sun.java.command : /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 sun.java.launcher : SUN_STANDARD sun.jnu.encoding : UTF-8 sun.management.compiler : HotSpot 64-Bit Tiered Compilers sun.os.patch.level : unknown user.country : US user.dir : /DATA/jenkins-home user.home : /var/lib/jenkins user.language: en user.name : jenkins user.timezone: Europe/Paris ```[tasklist] ### Tasks - [ ] Add a draft title or issue reference here ``` ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Jenkins 2.389 on a OS RHEL 8 try to connect a RHEL 9 via publish-over-ssh-plugin (1.24)

Reproduction steps

  1. Install a Jenkins in an RHEL 8
  2. Configure an Serveur to target an RHEL 9
  3. Click "Test Configuration"

Expected Results

Success

Actual Results

Failed to connect or change directory

jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [backstore-integ]. Message [Algorithm negotiation fail]]

Anything else?

Previous similary bug was resolveld by bumped lib in version 1.14

OneTop4458 commented 1 year ago

There is a workaround in #312. You can run the command in the Jenkins Script Console.

jmorille commented 10 months ago

Work in last version