Open a-p-o opened 7 years ago
It does not work for me too:
serv1 {
host = '****'
user = 'root'
knownHosts = allowAnyHosts
agent = true
identity = file("${System.properties['user.home']}/.ssh/id_rsa")
}
Output:
* What went wrong:
Execution failed for task ':uploadFile'.
> Auth fail
But if I use username & plain password, it works fine.
It fails as well for me. Doing ssh directly from the command line works.
Note that this has started happening to me after Sierra OSX upgrade.
More info:
If I remove the passphrase form id_rsa, then it works just fine, BUT ONLY IF I REMOVE "agent" or I set it to "false"
Environment info
gradle-ssh-plugin-2.7.0 (groovy-ssh-2.7.0, jsch-0.1.53, groovy-2.4.7, java-1.8.0_77)
Steps to reproduce
The output from Gradle is: