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 | 9 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  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 | 9 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
  3. 0
    samebug tip
    Ant scp task has an attribute called trust. If set to false (default) the host you connect to has to be set in the knownhosts file (you might have to create it) Another way is to explicitly set "trust = true". Check the documentation: https://goo.gl/G5680x
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Ant scp task failure

    Stack Overflow | 6 years ago | user617228
    com.jcraft.jsch.JSchException: reject HostKey: 10.184.74.168
  6. 0

    Configuring known_hosts in jgit

    Stack Overflow | 4 years ago | StormeHawke
    com.jcraft.jsch.JSchException: UnknownHostKey: www.somehost.com. RSA key fingerprint is 9d:92:a9:c5:5d:cb:5f:dc:57:ff:38:7e:34:31:fe:75

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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