My Oracle Support Banner

"Failed to connect to sFTP server" Error Reported With OEG When Using SHA2 On Remote Server (Doc ID 1988664.1)

Last updated on JUNE 01, 2018

Applies to:

Oracle API Gateway - Version 11.1.1.6.1 to 11.1.2 [Release 11gR1 to 11gR2]
Information in this document applies to any platform.

Symptoms

11.1.1.6.1 version, OEG Policy Studio


Facing the following problem using an OEG connection with an sFTP server.

Remote version string: SSH-2.0-OpenSSH_6.6p2-hpn14v4 ->connection failed
Remote version string: SSH-2.0-OpenSSH_5.3 ->success


ERROR
-----------------------

Failed (192.168.0.0 port 22):
DEBUG  [9e69a700] scanning 192.168.0.0 for files matching ([ˆ\s]+(\.(?i)(xml|xhtml|soap|wsdl|asmx))$)
DEBUG  [9e69a700] Connecting to 192.168.0.0 port 22
DEBUG  [9e69a700] Connection established
DEBUG  [9e69a700] Remote version string: SSH-2.0-OpenSSH_6.6p2-hpn14v4
DEBUG  [9e69a700] Local version string: SSH-2.0-JSCH-0.1.44
DEBUG  [9e69a700] CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
DEBUG  [9e69a700] SSH_MSG_KEXINIT sent
DEBUG  [9e69a700] SSH_MSG_KEXINIT received
DEBUG  [9e69a700] Disconnecting from 192.168.0.0 port 22
ERROR  [9e69a700] java exception:
java.io.IOException: Failed to connect to sFTP server
  at com.vordel.fileservice.client.SFTPSessionFactory.connect(SFTPSessionFactory.java:120)
  at com.vordel.dwe.ftp.FTPScanner.connect(FTPScanner.java:142)
  at com.vordel.dwe.ftp.FTPScanner.scanFTP(FTPScanner.java:161)
  at com.vordel.dwe.ftp.FTPScanner.poll(FTPScanner.java:209)
  at com.vordel.dwe.ftp.FTPScanner.access$100(FTPScanner.java:40)
  at com.vordel.dwe.ftp.FTPScanner$1.run(FTPScanner.java:226)
Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail
  at com.jcraft.jsch.Session.receive_kexinit(Session.java:529)
  at com.jcraft.jsch.Session.connect(Session.java:291)
  at com.jcraft.jsch.Session.connect(Session.java:154)
  at com.vordel.fileservice.client.SFTPSessionFactory.connect(SFTPSessionFactory.java:115)
  ... 5 more

success:
DEBUG  [9efa3700] scanning 192.168.0.0 for files matching ([ˆ\s]+(\.(?i)(xml|xhtml|soap|wsdl|asmx))$)
DEBUG  [9efa3700] Connecting to 192.168.0.0 port 22
DEBUG  [9efa3700] Connection established
DEBUG  [9efa3700] Remote version string: SSH-2.0-OpenSSH_5.3
DEBUG  [9efa3700] Local version string: SSH-2.0-JSCH-0.1.44
DEBUG  [9efa3700] CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
DEBUG  [9efa3700] SSH_MSG_KEXINIT sent
DEBUG  [9efa3700] SSH_MSG_KEXINIT received
DEBUG  [9efa3700] kex: server->client aes128-ctr hmac-md5 none
DEBUG  [9efa3700] kex: client->server aes128-ctr hmac-md5 none
DEBUG  [9efa3700] SSH_MSG_KEXDH_INIT sent
DEBUG  [9efa3700] expecting SSH_MSG_KEXDH_REPLY
DEBUG  [9efa3700] ssh_rsa_verify: signature true
DEBUG  [9efa3700] Checking the host '192.168.0.0' with finger print: 55:7b:df:8f:fb:19:e1:a5:e7:17:58:95:47:28:34:25
DEBUG  [9efa3700] The finger print for host 192.168.0.0 is trusted
DEBUG  [9efa3700] Host '192.168.0.0' is known and mathces the RSA host key
DEBUG  [9efa3700] SSH_MSG_NEWKEYS sent
DEBUG  [9efa3700] SSH_MSG_NEWKEYS received
DEBUG  [9d700700] parsing (options value 2052) XML body from input stream of type java.io.ByteArrayInputStream. ContentSource is of type java InputStream
DEBUG  [9efa3700] SSH_MSG_SERVICE_REQUEST sent
DEBUG  [9efa3700] SSH_MSG_SERVICE_ACCEPT received
DEBUG  [9efa3700] Authentications that can continue: gssapi-with-mic,publickey,keyboard-interactive,password
DEBUG  [9efa3700] Next authentication method: gssapi-with-mic
DEBUG  [9efa3700] Authentications that can continue: publickey,keyboard-interactive,password
DEBUG  [9efa3700] Next authentication method: publickey
DEBUG  [9efa3700] Authentications that can continue: password
DEBUG  [9efa3700] Next authentication method: password
DEBUG  [9efa3700] Authentication succeeded (password).
DEBUG  [9efa3700] SCP transfers files as binary copies only and has no support for the ASCII transfer mode of FTP.
DEBUG  [9efa3700] The file file passed filter? false

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.