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

Cannot configure password for ssh-key used for git remote

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.
      

        Attachments

          Issue Links

            Activity

            agallardo Alberto Gallardo created issue -
            agallardo Alberto Gallardo made changes -
            Field Original Value New Value
            Description 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.
            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.}}
            agallardo Alberto Gallardo made changes -
            Link This issue depends on JENKINS-18129 [ JENKINS-18129 ]
            agallardo Alberto Gallardo made changes -
            Description 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.}}
            Cannot use a git repository with ssh, if the key is password-protected.

            Example:

            {noformat}
            $# 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)

            {noformat}


            Trying to save any config change:

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

            {noformat}


            In log:

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

            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 168315 ] JNJira + In-Review [ 183063 ]
            fcamblor Frédéric Camblor made changes -
            Assignee Frédéric Camblor [ fcamblor ] Craig Rodrigues [ rodrigc ]
            rodrigc Craig Rodrigues made changes -
            Assignee Craig Rodrigues [ rodrigc ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              agallardo Alberto Gallardo
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: