IBM Support

SFTP Client Begin error com.maverick.ssh.SshException: The host key was not accepted [Unknown cause]

Troubleshooting


Problem

SFTP Client Begin error com.maverick.ssh.SshException: The host key was not accepted [Unknown cause]

Symptom

Gentran Integration Suite, all versions

SFTP Client Begin error The host key was not accepted [Unknown cause]

Error Message

sftp log:-
DEBUG 000000000000 GLOBAL_SCOPE Session.beginSession(BSR,R,PT) making ssh connection with user ltsbmefg
DEBUG 000000000000 GLOBAL_SCOPE Session.verifyHostKey(S,R) setting key type ssh-dss
ERROR 000000000000 GLOBAL_SCOPE Session.beginSession(BSR,R,PT) runnable caught exception
com.maverick.ssh.SshException: The host key was not accepted [Unknown cause]

Resolving The Problem

This error occurs because the "known host key" checked into GIS is a DSS key and the SFTP server is expecting an RSA key.

Ask the SFTP server owner to provide a host key in RSA format.
Delete the SSH Known Host Key (DSS format) previously checked into GIS.
Check-in the new key in RSA format.

[{"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

NFX9938

Document Information

Modified date:
16 June 2018

UID

swg21558208