OSB 11g error – Unable to Connect to SFTP Server Using RSA Key Defined in Known-Hosts File

Issue –> You are trying to create an SFTP based proxy service using an RSA key in the known_hosts file, you can see the below error.

Error –>  Error encountered while polling the resource for the service endpoint
ProxyService$TestSFTP$Services$TestSFTPTransferPS: com.bea.wli.sb.transports.TransportException:
Key Not Found for host <hostname>,<IP address>
com.bea.wli.sb.transports.TransportException: Key Not Found for host <hostname>,<IP address>
at com.bea.wli.sb.transports.sftp.connector.SFTPWorkPartitioningAgent.execute
[SFTPWorkPartitioningAgent.java:126)
at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:76)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at

Solution –>

When the known_hosts file is set up only with an RSA key, when the SFTP server either supports only an RSA key or both RSA and DSA keys, then the SFTP transport will use the RSA key.

When the known_hosts file is set up with a DSA key, and not matter whether an RSA key is also set up, SFTP transport will always use the DSA key.

Basically, when a DSA key is set up in the known_hosts file, it will use that otherwise, what every key is used, one of them (at random) will be used.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s