After updating the OS and Jenkins i cant connect to gerrit server by Gerrit Trigger plugin Connection error : com.jcraft.jsch.JSchException: Auth fail for methods 'publickey'

I have verified that the Jenkins account can connect via SSH into the Gerrit server without any problem

1

There are 1 best solutions below

1
On

The problem was solved by adding into JAVA_OPT:

-Djsch.client_pubkey="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa" -Djsch.server_host_key="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa"