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

Samebug tips1

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


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web44

  • via Unknown by Alejandro Nosenzo,
  • via Unknown by 836575,
  • via Stack Overflow by user617228
    ,
  • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    jstrayerjstrayer
    Once,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,