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

Git plugin unable to use SSH credentials with passphrase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • git-client-plugin
    • None
    • SSH Agent Plugin 1.15
      SSH Credentials Plugin 1.14
      Git plugin 3.9.1
      Jenkins ver. 2.121.1
      ssh-keygen from openssh 7.7p1-1

      Hello.

      If ssh credentials used with a passphrase, then Jenkins unable to fetch anything from the remote repo.

      Step to reproduce:

      1. Create a key with passphrase `ssh-keygen -b 2048 -t rsa -f test_rsa`
      2. Add credentials 'SSH Username with private key' from the previous step
      3. Add repo on git with access by the key
      4. Create freestyle project with ssh git source and using credentials
        Result:
      5. Remove passphrase from the key with `ssh-keygen -pf test_rsa`
      6. Edit credentials regarding
      7. Try to fetch the source code again
        Result:
         

      I would like to give any necessary additional information.

            Unassigned Unassigned
            felixoid Mikhail Shiryaev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: