Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32656

Cannot configure password for ssh-key used for git remote

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • Jenkins ver. 1.644
      SCM Sync Configuration Plugin ver. 0.9

      Cannot use a git repository with ssh, if the key is password-protected.

      Example:

      $# Set password for ssh key:
      $ ssh-keygen -p -f ~/.ssh/id_rsa
      Key has comment '/var/lib/jenkins/.ssh/id_rsa'
      Enter new passphrase (empty for no passphrase): ***
      Enter same passphrase again: ***
      Your identification has been saved with the new passphrase.
      
      $git remote -v
      origin ssh://git@git.server/repo (fetch)
      origin ssh://git@git.server/repo (push)
      
      

      Trying to save any config change:

      SCM Sync status :  
      Wed Jan 27 17:22:04 CET 2016 : Error while checking in file to scm repository
      
      

      In log:

      SEVERE: [checkinFiles] Problem during SCM commit : Permission denied (publickey).
      fatal: Could not read from remote repository.
      

            Unassigned Unassigned
            agallardo Alberto Gallardo
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: