Skip to Main Content

Few public keys in a known_hosts for the same hostname and port

User_ZR3A6Oct 12 2022

Hello.
Environment:
1)Weblogic 12c + Service Bus 12c
2)SFTP server where two nodes in a cluster
Task:
Polling files from the SFTP server
Implementation:
1)two different public keys (each key from two nodes of the SFTP server) have been added to the
$HOME_DOMAIN/config/osb/transports/sftp/known_hosts for the same sftp hostaname, like:
[sftp.test.server]:22 ssh-rsa AAAAB1...
[sftp.test.server]:22 ssh-rsa AAAAB2...
2)when OSB polls the SFTP server, it has sometime error:
com.bea.wli.sb.transports.TransportException: Key Mismatch for host [sftp.test.server]:22
I guess that happens when OSB gets first public key for [sftp.test.server]:22 from known_hosts and tries connect randomly to the second one SFTP node.
Question:
Could you please tell me how it possible to solve that on Weblogic side?

Comments
Post Details
Added on Oct 12 2022
0 comments
12 views