com.jcraft.jsch.JSchException: Algorithm negotiation fail

jenkins-ci.org | 4 months ago
  1. 0

    Cannot create connection to server with OpenSSH_6.7p1, OpenSSL 1.0.1j 15 Oct 2014. In configuration page it just say cannot connect to server. With openssh 6.6 all works fine. Trying to run something on that server: {code} [SSH] Exception:Algorithm negotiation fail com.jcraft.jsch.JSchException: Algorithm negotiation fail at com.jcraft.jsch.Session.receive_kexinit(Session.java:520) at com.jcraft.jsch.Session.connect(Session.java:286) at com.jcraft.jsch.Session.connect(Session.java:150) at org.jvnet.hudson.plugins.SSHSite.createSession(SSHSite.java:118) at org.jvnet.hudson.plugins.SSHSite.executeCommand(SSHSite.java:128) at org.jvnet.hudson.plugins.SSHBuilder.perform(SSHBuilder.java:60) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1740) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Build step 'Execute shell script on remote host using ssh' marked build as failure {code} ngrep also says that "Algorithm negotiation" is the problem: {code} T 192.168.20.186:49916 -> 192.168.20.188:22 [AP] SSH-2.0-JSCH-0.1.42. T 192.168.20.188:22 -> 192.168.20.186:49916 [AP] SSH-2.0-OpenSSH_6.7.. T 192.168.20.186:49916 -> 192.168.20.188:22 [AP] ........^..gco..Z.$A.....=diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1....ssh-rsa,ssh-dss...Jaes128-ctr,aes128 -cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc...Jaes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,ae s256-cbc...+hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96...+hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96....none....none......... ....H..(.4d.Qy...eV T 192.168.20.188:22 -> 192.168.20.186:49916 [AP] ......o[.o2...d...@..z....curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman- group-exchange-sha256,diffie-hellman-group14-sha1.../ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519...laes128-ctr,aes192-ctr,a es256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com...laes128-ctr,aes192-ctr,aes256-ctr,aes12 8-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com....umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac -sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac -sha2-256,hmac-sha2-512,hmac-sha1....umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-5 12-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1.... none,zlib@openssh.com....none,zlib@openssh.com................. T 192.168.20.186:49916 -> 192.168.20.188:22 [AP] ...T.........9com.jcraft.jsch.JSchException: Algorithm negotiation fail....enl....;R]7.. {code}

    Jenkins JIRA | 2 years ago | Evgeny Persienko
    com.jcraft.jsch.JSchException: Algorithm negotiation fail
  2. 0

    Cannot create connection to server with OpenSSH_6.7p1, OpenSSL 1.0.1j 15 Oct 2014. In configuration page it just say cannot connect to server. With openssh 6.6 all works fine. Trying to run something on that server: {code} [SSH] Exception:Algorithm negotiation fail com.jcraft.jsch.JSchException: Algorithm negotiation fail at com.jcraft.jsch.Session.receive_kexinit(Session.java:520) at com.jcraft.jsch.Session.connect(Session.java:286) at com.jcraft.jsch.Session.connect(Session.java:150) at org.jvnet.hudson.plugins.SSHSite.createSession(SSHSite.java:118) at org.jvnet.hudson.plugins.SSHSite.executeCommand(SSHSite.java:128) at org.jvnet.hudson.plugins.SSHBuilder.perform(SSHBuilder.java:60) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1740) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Build step 'Execute shell script on remote host using ssh' marked build as failure {code} ngrep also says that "Algorithm negotiation" is the problem: {code} T 192.168.20.186:49916 -> 192.168.20.188:22 [AP] SSH-2.0-JSCH-0.1.42. T 192.168.20.188:22 -> 192.168.20.186:49916 [AP] SSH-2.0-OpenSSH_6.7.. T 192.168.20.186:49916 -> 192.168.20.188:22 [AP] ........^..gco..Z.$A.....=diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1....ssh-rsa,ssh-dss...Jaes128-ctr,aes128 -cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc...Jaes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,ae s256-cbc...+hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96...+hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96....none....none......... ....H..(.4d.Qy...eV T 192.168.20.188:22 -> 192.168.20.186:49916 [AP] ......o[.o2...d...@..z....curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman- group-exchange-sha256,diffie-hellman-group14-sha1.../ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519...laes128-ctr,aes192-ctr,a es256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com...laes128-ctr,aes192-ctr,aes256-ctr,aes12 8-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com....umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac -sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac -sha2-256,hmac-sha2-512,hmac-sha1....umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-5 12-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1.... none,zlib@openssh.com....none,zlib@openssh.com................. T 192.168.20.186:49916 -> 192.168.20.188:22 [AP] ...T.........9com.jcraft.jsch.JSchException: Algorithm negotiation fail....enl....;R]7.. {code}

    Jenkins JIRA | 2 years ago | Evgeny Persienko
    com.jcraft.jsch.JSchException: Algorithm negotiation fail
  3. 0

    [JENKINS-25258] SSH Plugin fails to connect to openssh 6.7 - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    com.jcraft.jsch.JSchException: Algorithm negotiation fail
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Algorithm negotiation fail in Jenkins

    Stack Overflow | 1 year ago | Ehsan Enayati
    com.jcraft.jsch.JSchException: Algorithm negotiation fail
  6. 0

    jenkinsでサーバ構築ツール作成 - Qiita

    qiita.com | 2 months ago
    com.jcraft.jsch.JSchException: Algorithm negotiation fail

  1. abrazeneb 1 times, last 4 months ago
96 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.jcraft.jsch.JSchException

    Algorithm negotiation fail

    at com.jcraft.jsch.Session.receive_kexinit()
  2. JSch
    Session.connect
    1. com.jcraft.jsch.Session.receive_kexinit(Session.java:520)
    2. com.jcraft.jsch.Session.connect(Session.java:286)
    3. com.jcraft.jsch.Session.connect(Session.java:150)
    3 frames
  3. org.jvnet.hudson
    SSHBuilder.perform
    1. org.jvnet.hudson.plugins.SSHSite.createSession(SSHSite.java:118)
    2. org.jvnet.hudson.plugins.SSHSite.executeCommand(SSHSite.java:128)
    3. org.jvnet.hudson.plugins.SSHBuilder.perform(SSHBuilder.java:60)
    3 frames
  4. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
    3. hudson.model.Build$BuildExecution.build(Build.java:199)
    4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
    6. hudson.model.Run.execute(Run.java:1740)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    8. hudson.model.ResourceController.execute(ResourceController.java:89)
    9. hudson.model.Executor.run(Executor.java:240)
    9 frames