I’m trying to use the Hudson Gerrit Trigger plug-in.
For whatever reason, Gerrit is not accepting the SSH key located at /var/lib/hudson/.ssh/id_rsa.
In the GUI I get Connection error : com.jcraft.jsch.JSchException: Auth fail as an error, and when I’m working in the terminal I get a Permission denied (publickey) error.
How can I generate and use a working private key so Hudson and Gerrit can play nice?
The OP Josh Smith managed to sort it out:
My original advice is below:
What is the user which will use the web based code review system Gerrit?
That user needs your
/var/lib/hudson/.ssh/id_rsa.pubpublic ssh key in its$HOME/.ssh/authorized_keys, as illustrated in this guide.Key Distribution