net.schmizz.sshj.transport.TransportException: Unable to reach a settlement: [diffie-hellman-group14-sha1, diffie-hellman-group1-sha1] and [curve25519-sha256@libssh.org, diffie-hellman-group-exchange-sha256]

Atlassian JIRA | ebaratte NA | 1 year ago
  1. 0

    If the remote ssh server refuses (as recommended) SHA-1, and only accepts SHA-256, the deployment task fails with: {code:java} 26-Jun-2015 12:51:01 Starting task 'ssh' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask' 26-Jun-2015 12:51:01 Connecting to **** on port: *** 26-Jun-2015 12:51:01 Failed to connect to host 26-Jun-2015 12:51:01 net.schmizz.sshj.transport.TransportException: Unable to reach a settlement: [diffie-hellman-group14-sha1, diffie-hellman-group1-sha1] and [curve25519-sha256@libssh.org, diffie-hellman-group-exchange-sha256] 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.Proposal.firstMatch(Proposal.java:145) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.Proposal.negotiate(Proposal.java:128) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.KeyExchanger.gotKexInit(KeyExchanger.java:219) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.KeyExchanger.handle(KeyExchanger.java:344) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:458) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:107) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.Decoder.received(Decoder.java:175) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.Reader.run(Reader.java:61) 26-Jun-2015 12:51:01 Finished task 'ssh' with result: Error {code}

    Atlassian JIRA | 1 year ago | ebaratte NA
    net.schmizz.sshj.transport.TransportException: Unable to reach a settlement: [diffie-hellman-group14-sha1, diffie-hellman-group1-sha1] and [curve25519-sha256@libssh.org, diffie-hellman-group-exchange-sha256]
  2. 0

    If the remote ssh server refuses (as recommended) SHA-1, and only accepts SHA-256, the deployment task fails with: {code:java} 26-Jun-2015 12:51:01 Starting task 'ssh' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask' 26-Jun-2015 12:51:01 Connecting to **** on port: *** 26-Jun-2015 12:51:01 Failed to connect to host 26-Jun-2015 12:51:01 net.schmizz.sshj.transport.TransportException: Unable to reach a settlement: [diffie-hellman-group14-sha1, diffie-hellman-group1-sha1] and [curve25519-sha256@libssh.org, diffie-hellman-group-exchange-sha256] 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.Proposal.firstMatch(Proposal.java:145) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.Proposal.negotiate(Proposal.java:128) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.KeyExchanger.gotKexInit(KeyExchanger.java:219) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.KeyExchanger.handle(KeyExchanger.java:344) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:458) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:107) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.Decoder.received(Decoder.java:175) 26-Jun-2015 12:51:01 at net.schmizz.sshj.transport.Reader.run(Reader.java:61) 26-Jun-2015 12:51:01 Finished task 'ssh' with result: Error {code}

    Atlassian JIRA | 1 year ago | ebaratte NA
    net.schmizz.sshj.transport.TransportException: Unable to reach a settlement: [diffie-hellman-group14-sha1, diffie-hellman-group1-sha1] and [curve25519-sha256@libssh.org, diffie-hellman-group-exchange-sha256]
  3. 0

    Please update the SSH exchange key algorithms that are used by the current Bamboo java library. Based on the current encryption levels, {{SSH}} and {{SCP}} tasks can fail with the following error message if your environment is set to use higher encrypted algorithms: {noformat} Starting task 'SCP <application> to <server name>' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask' 09-Oct-2015 14:15:42 Connecting to <server name>.<domain> on port: 22 09-Oct-2015 14:15:42 Failed to connect to host 09-Oct-2015 14:15:42 net.schmizz.sshj.transport.TransportException: Unable to reach a settlement: [diffie-hellman-group14-sha1, diffie-hellman-group1-sha1] and [curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1] 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.Proposal.firstMatch(Proposal.java:145) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.Proposal.negotiate(Proposal.java:128) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.KeyExchanger.gotKexInit(KeyExchanger.java:219) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.KeyExchanger.handle(KeyExchanger.java:344) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:458) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:107) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.Decoder.received(Decoder.java:175) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.Reader.run(Reader.java:61) 09-Oct-2015 14:15:42 Finished task 'SCP <application> to <server name>' with result: Error {noformat} We need to have a change made to the library to enable Bamboo to use higher encrypted algorithms. In the example above, the following algorithms are needed: {noformat} curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1 {noformat}

    Atlassian JIRA | 1 year ago | Bruno Rosa
    net.schmizz.sshj.transport.TransportException: Unable to reach a settlement: [diffie-hellman-group14-sha1, diffie-hellman-group1-sha1] and [curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Please update the SSH exchange key algorithms that are used by the current Bamboo java library. Based on the current encryption levels, {{SSH}} and {{SCP}} tasks can fail with the following error message if your environment is set to use higher encrypted algorithms: {noformat} Starting task 'SCP <application> to <server name>' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask' 09-Oct-2015 14:15:42 Connecting to <server name>.<domain> on port: 22 09-Oct-2015 14:15:42 Failed to connect to host 09-Oct-2015 14:15:42 net.schmizz.sshj.transport.TransportException: Unable to reach a settlement: [diffie-hellman-group14-sha1, diffie-hellman-group1-sha1] and [curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1] 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.Proposal.firstMatch(Proposal.java:145) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.Proposal.negotiate(Proposal.java:128) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.KeyExchanger.gotKexInit(KeyExchanger.java:219) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.KeyExchanger.handle(KeyExchanger.java:344) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:458) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:107) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.Decoder.received(Decoder.java:175) 09-Oct-2015 14:15:42 at net.schmizz.sshj.transport.Reader.run(Reader.java:61) 09-Oct-2015 14:15:42 Finished task 'SCP <application> to <server name>' with result: Error {noformat} We need to have a change made to the library to enable Bamboo to use higher encrypted algorithms. In the example above, the following algorithms are needed: {noformat} curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1 {noformat}

    Atlassian JIRA | 1 year ago | Bruno Rosa
    net.schmizz.sshj.transport.TransportException: Unable to reach a settlement: [diffie-hellman-group14-sha1, diffie-hellman-group1-sha1] and [curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1]
  6. 0

    Unable to reach a settlement: issue :(

    GitHub | 3 years ago | chezn
    net.schmizz.sshj.transport.TransportException: Unable to reach a settlement: [] and [aes128-ctr, aes128-cbc, arcfour, 3des-cbc, blowfish-cbc, aes192-ctr, aes192-cbc, aes256-ctr, aes256-cbc]

  1. melezov 2 times, last 2 months ago
6 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. net.schmizz.sshj.transport.TransportException

    Unable to reach a settlement: [diffie-hellman-group14-sha1, diffie-hellman-group1-sha1] and [curve25519-sha256@libssh.org, diffie-hellman-group-exchange-sha256]

    at net.schmizz.sshj.transport.Proposal.firstMatch()
  2. sshj
    Reader.run
    1. net.schmizz.sshj.transport.Proposal.firstMatch(Proposal.java:145)
    2. net.schmizz.sshj.transport.Proposal.negotiate(Proposal.java:128)
    3. net.schmizz.sshj.transport.KeyExchanger.gotKexInit(KeyExchanger.java:219)
    4. net.schmizz.sshj.transport.KeyExchanger.handle(KeyExchanger.java:344)
    5. net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:458)
    6. net.schmizz.sshj.transport.Decoder.decode(Decoder.java:107)
    7. net.schmizz.sshj.transport.Decoder.received(Decoder.java:175)
    8. net.schmizz.sshj.transport.Reader.run(Reader.java:61)
    8 frames