Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. DefaultFileSystemManager.resolveFile() has thrown a FileSystemException
    Commons VFS
    0
    0
    0
  2. Session.connect() has thrown a JSchException
    JSch
    9
    2
    0

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
com.jcraft.jsch.JSchException: UnknownHostKey: x.x.x.x
1 matching frame hidden
    at com.jcraft.jsch.Session.connect(Unknown Source)
    at com.jcraft.jsch.Session.connect(Unknown Source)
    at org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:210)
6 frames hidden

Solution

rafael1 year ago

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

Check the source of this solution for more info

External results for this pattern (10)

  1. Karthikvia Stack Overflow4 months ago
    UnknownHostKey: ******. RSA key f is *************
    Show stack trace
  2. YdBvia Stack Overflow5 months ago
    reject HostKey: the-host-stands-here
    Show stack trace
  3. Unknown authorvia wso2.com5 months ago
    Could not connect to SFTP server at "sftp://user1:***@ftps.example.com/".
    Show stack trace
  4. tanweer-avgvia GitHub5 months ago
    Execution failed for task ':cloneSomeRepo'.
    Show stack trace
  5. rvvia Oracle Community5 months ago
    Could not connect to SFTP server at "sftp://dev/".
    Show stack trace
  6. Unknown authorvia nabble.com5 months ago
    Could not connect to SFTP server at "sftp://x.x.x.x/".
    Show stack trace
  7. felixhartmannvia fullsync5 months ago
    Nested exception: Could not connect to SFTP server at "sftp://46.4.122.236/". nested exception: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://46.4.122.236/".
    Show stack trace
  8. AdminJavavia Stack Overflow5 months ago
    UnknownHostKey: proxyServer. RSA key fingerprint is XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX......
    Show stack trace
  9. sharda sheshabhattarvia Apache's JIRA Issue Tracker5 months ago
    Error deploying artifact: Authentication fail ed: Cannot connect. Reason: reject HostKey: nyhub1
    Show stack trace
  10. mancovia commons-user5 months ago
    Could not connect to SFTP server at "sftp://pipe:emeter@linuxserver1/".
    Show stack trace