I recently changed my cloud server OS from Ubuntu 20.04 to 22.04. After that, remote upload jar task fail during gradle build using org.hidetake.ssh with below message.
com.jcraft.jsch.JSchException: Auth fail
I guess it could be a RSA problem which is deprecated on Ubuntu 22.04 but I can't find how to resolve it.
The config I'm used with ssh.run task is below. I would really appreciate if anyone has idea.
remotes {
myServer {
host = 'x.x.x.x'
port = 22
user = 'ubuntu'
identity = file('d:/a.pem')
knownHosts = allowAnyHosts
}
}