[ 
https://issues.jenkins-ci.org/browse/JENKINS-12690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158810#comment-158810
 ] 

Tim Baverstock commented on JENKINS-12690:
------------------------------------------

Oh, the password is 'letmein' for the keys with a passphrase.
                
> JenkinsTrigger does not understand SSH Key with a password
> ----------------------------------------------------------
>
>                 Key: JENKINS-12690
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12690
>             Project: Jenkins
>          Issue Type: Bug
>          Components: gerrit-trigger
>         Environment: Linux dt-000886 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 
> 20 17:23:00 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
> Jenkins ver. 1.450
> Gerrit Trigger 2.3.1
>            Reporter: Tim Baverstock
>            Assignee: rsandell
>              Labels: gerrit, plugin
>         Attachments: id_rsa, id_rsa, id_rsa.pub, id_rsa.pub
>
>
> I can only get Jenkins to talk to Gerrit's SSH connection if the key file has 
> no password.
> 1. Use ssh-keygen to create a key with a password
> 2. Configure Gerrit Trigger with that key and its password
> 3. Test Connection
> > Bad SSH keyfile or password
> Jenkins.log:
> > 09-Feb-2012 12:43:18 
> > com.sshtools.j2ssh.transport.publickey.SshPrivateKeyFile parse
> > INFO: Parsing private key file
> > 09-Feb-2012 12:43:18 
> > com.sshtools.j2ssh.transport.publickey.SshPrivateKeyFile parse
> > INFO: Private key is not in the default format, attempting parse with other 
> > supported formats
> 4. Clear the password: ssh-keygen -f .ssh/id_rsa -p -N ''
> Note that the Proc-Type and DEK-Info headers have gone.
> 5. Test connection (without clearing the password!)
> 6. Succeeds. Log still complains about non-default format.
> 7. Clear the password in Jenkins.
> 8. Test connection
> 9. Still succeeds, Log still complains about non-default format.
> This took me ages to nail down because supplying a password to a no-password 
> key file doesn't fail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to