[GRADLE-3133] SFTP resolution fails with 'Auth cancel' Created: 10/Jul/14  Updated: 27/Jan/17  Resolved: 08/Oct/14

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 2.1-rc-1

Type: Bug
Reporter: Gradle Forums Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   

The sftp authentication is canceled
Caused by: com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Session.java:511)
at com.jcraft.jsch.Session.connect(Session.java:183)
at org.gradle.internal.resource.transport.sftp.SftpClientFactory$SftpClientCreator.createNewClient(SftpClientFactory.java:63)
I actually have the correct credentials there. I did log in with FileZilla using the same username password combination. I think it is something with "known_hosts". But JSch is very hard to read and does not log any useful info.



 Comments   
Comment by Gradle Forums [ 10/Jul/14 ]

The SFTP functionality is pretty new, and may have limitations. Can you please provide the full debug logs, via GitHub Gist (or similar)?

Comment by Gradle Forums [ 10/Jul/14 ]

Here is the debug log.
[1]https://gist.github.com/anonymous/a30...
I replaced the urls, product strings, etc
I hope that helps
----------------------------------------------------------------------------------------
[1] https://gist.github.com/anonymous/a3042d52754a78e9f5dd

Comment by Gradle Forums [ 10/Jul/14 ]

Maybe the stacktrace helps:
[1]https://gist.github.com/anonymous/754...
----------------------------------------------------------------------------------------
[1] https://gist.github.com/anonymous/754c79363c5654bf79ab

Generated at Wed Jun 30 12:40:51 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.