com.jcraft.jsch.JSchException: UnknownHostKey: localhost. RSA key fingerprint is bb:cb:63:07:52:24:32:13:d8:b8:ac:07:e3:2e:15:23

MuleSoft JIRA | Alejandro Nosenzo | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Testing with the MAC SFTP server when you connect using "sftp localhost" the key added to your known_hosts file is using "ecdsa-sha2-nistp256". When I want to connect using Mule SFTP Connection I receive this warning {quote} Root Exception stack trace: com.jcraft.jsch.JSchException: UnknownHostKey: localhost. RSA key fingerprint is bb:cb:63:07:52:24:32:13:d8:b8:ac:07:e3:2e:15:23 at com.jcraft.jsch.Session.checkHost(Session.java:797) {quote} If I add the entry after obtaining the ssh-rsa using the command "ssh-keyscan localhost" it throws: {quote} org.mule.runtime.core.api.MuleRuntimeException: Error during login to alejandro@localhost. 2016-08-31 03:53:24,863 [[fb407c40-6f46-11e6-8f29-acbc32a683df].sftp-flow-create-directory.worker.01] ERROR org.mule.runtime.core.exception.DefaultMessagingExceptionStrategy - ******************************************************************************** Message : org.mule.runtime.core.api.MuleRuntimeException: Error during login to alejandro@localhost Payload : null Payload Type : null Element : org.mule.runtime.module.extension.internal.runtime.DefaultExecutionMediator$OperationRetryCallBack@1f147640 @ app -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.ArrayIndexOutOfBoundsException: 222 at com.jcraft.jsch.Util.fromBase64(Util.java:52) at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:218) at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:54) at com.jcraft.jsch.JSch.setKnownHosts(JSch.java:317) at org.mule.extension.ftp.internal.sftp.connection.SftpClient.configureHostChecking(SftpClient.java:187) at org.mule.extension.ftp.internal.sftp.connection.SftpClient.configureSession(SftpClient.java:170) {quote}

    MuleSoft JIRA | 6 months ago | Alejandro Nosenzo
    com.jcraft.jsch.JSchException: UnknownHostKey: localhost. RSA key fingerprint is bb:cb:63:07:52:24:32:13:d8:b8:ac:07:e3:2e:15:23
  2. 0

    FIle transfer through SFTP

    Oracle Community | 6 years ago | 836575
    com.jcraft.jsch.JSchException: UnknownHostKey: myhost.com. RSA key fingerprint is f6:52:ff:e1:72:81:85:59:06:6c:62:65:80:1c:2a:46

    Root Cause Analysis

    1. com.jcraft.jsch.JSchException

      UnknownHostKey: localhost. RSA key fingerprint is bb:cb:63:07:52:24:32:13:d8:b8:ac:07:e3:2e:15:23

      at com.jcraft.jsch.Session.checkHost()
    2. JSch
      Session.checkHost
      1. com.jcraft.jsch.Session.checkHost(Session.java:797)
      1 frame