SQLDeveloper SSH Connection Algorithm negotiation fail

StarKev2525

I am attempting to setup an SSH connection in SQL Developer 17.4.1.054 to a CentOS 7 server in order to proxy a SQL connection through it. When I attempt to connect to the configured SSH host, I get the following error:

com.jcraft.jsch.JSchException: Algorithm negotiation fail
at com.jcraft.jsch.Session.receive_kexinit(Session.java:583)
at com.jcraft.jsch.Session.connect(Session.java:320)
at com.jcraft.jsch.Session.connect(Session.java:183)
at oracle.dbtools.raptor.ssh.core.Client.testConnection(Client.java:376)
at oracle.dbtools.raptor.ssh.navigator.SshController.handleEvent(SshController.java:126)
at oracle.dbtools.raptor.navigator.core.NavigatorWindow$3.handleEvent(NavigatorWindow.java:388)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:663)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:1159)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:618)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

On the CentOS server the following has been defined in the sshd_config in order to be more secure.

MACs hmac-sha2-512,hmac-sha2-256
Ciphers aes256-ctr,aes192-ctr,aes128-ctr
KexAlgorithms ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256

I have tried setting up an OpenSSH Config and referencing it in the SQL Developer preferences, but that results in a nullpointer:

java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.jcraft.jsch.Session.receive_kexinit(Session.java:594)
at com.jcraft.jsch.Session.connect(Session.java:320)
at com.jcraft.jsch.Session.connect(Session.java:183)
at oracle.dbtools.raptor.ssh.core.Client.testConnection(Client.java:376)
at oracle.dbtools.raptor.ssh.navigator.SshController.handleEvent(SshController.java:126)
at oracle.dbtools.raptor.navigator.core.NavigatorWindow$3.handleEvent(NavigatorWindow.java:388)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:663)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:1159)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:618)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Any assistance in getting this working would be great!

thatjeffsmith

The JSCH library appears to support your security scheme, we're going to log a bug on this, although it might be a limitation in the Java implementation.

If you want it officially documented with service level updates, you would need to log it with My Oracle Support.

PS

In a nutshell, the three ecdh-sha2-nistp* KexAlgorithms aren’t supported. JSch has implementations for them, but they aren’t registered by default. So referencing them in the OpenSSH config file will cause the NullPointerException. If those three are removed on the client config (leaving just diffie-hellman-group-exchange-sha256), it should work.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Algorithm negotiation fail SSH in Jenkins

From Dev

PhpStorm: Algorithm negotiation fail

From Dev

Algorithm negotiation fail in Jenkins

From Dev

JSch Algorithm negotiation fail

From Dev

Netbeans SSH: Cannot connect to server ... Algorithm negotiation fail - how to fix?

From Dev

ssh algorithm negotiation failed

From Dev

SharpSSH jsch Algorithm negotiation fail

From Dev

error:Algorithm negotiation fail with SharpSSH

From Dev

JSch algorithm negotiation fail with OSX El Capitan

From Dev

ansible SSH connection fail

From Dev

JSchException: Algorithm negotiation fail diffie-hellman-group14-sha1

From Dev

HTTP Accept negotiation algorithm

From Dev

Sqldeveloper /as sysdba connection

From Dev

How name-lists are separated in SSH2 algorithm negotiation packet payload?

From Dev

How name-lists are separated in SSH2 algorithm negotiation packet payload?

From Dev

SQLDeveloper 4.0 not showing connection for SQLServer

From Dev

Crazy Domains SMTP SSL Negotiation Fail

From Dev

Making an ssh ControlPath connection act as slave-or-fail (not fallback to ControlMaster)

From Dev

Algorithm Negotiation failed when trying to connect to server

From Dev

MQ: Connection to host rejected | Channel negotiation failed

From Dev

sqldeveloper 4.1.1 new connection no access tab

From Dev

How to take a backup for the 'connection details' in sqldeveloper?

From Dev

What can cause auto-negotiation to fail on network?

From Dev

Merge Sort Algorithm fail

From Dev

Connection to Bluetooth device fail

From Dev

WlanConnect Connection attempt fail

From Dev

Wifi connection fail, but web connects with wire connection

From Dev

spark connection to cassandra, fail op open connection

From Dev

Redhat Linux password fail on ssh

Related Related

  1. 1

    Algorithm negotiation fail SSH in Jenkins

  2. 2

    PhpStorm: Algorithm negotiation fail

  3. 3

    Algorithm negotiation fail in Jenkins

  4. 4

    JSch Algorithm negotiation fail

  5. 5

    Netbeans SSH: Cannot connect to server ... Algorithm negotiation fail - how to fix?

  6. 6

    ssh algorithm negotiation failed

  7. 7

    SharpSSH jsch Algorithm negotiation fail

  8. 8

    error:Algorithm negotiation fail with SharpSSH

  9. 9

    JSch algorithm negotiation fail with OSX El Capitan

  10. 10

    ansible SSH connection fail

  11. 11

    JSchException: Algorithm negotiation fail diffie-hellman-group14-sha1

  12. 12

    HTTP Accept negotiation algorithm

  13. 13

    Sqldeveloper /as sysdba connection

  14. 14

    How name-lists are separated in SSH2 algorithm negotiation packet payload?

  15. 15

    How name-lists are separated in SSH2 algorithm negotiation packet payload?

  16. 16

    SQLDeveloper 4.0 not showing connection for SQLServer

  17. 17

    Crazy Domains SMTP SSL Negotiation Fail

  18. 18

    Making an ssh ControlPath connection act as slave-or-fail (not fallback to ControlMaster)

  19. 19

    Algorithm Negotiation failed when trying to connect to server

  20. 20

    MQ: Connection to host rejected | Channel negotiation failed

  21. 21

    sqldeveloper 4.1.1 new connection no access tab

  22. 22

    How to take a backup for the 'connection details' in sqldeveloper?

  23. 23

    What can cause auto-negotiation to fail on network?

  24. 24

    Merge Sort Algorithm fail

  25. 25

    Connection to Bluetooth device fail

  26. 26

    WlanConnect Connection attempt fail

  27. 27

    Wifi connection fail, but web connects with wire connection

  28. 28

    spark connection to cassandra, fail op open connection

  29. 29

    Redhat Linux password fail on ssh

HotTag

Archive