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

Passphrase not prompted for default key files

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: cli
    • Labels:
      None
    • Similar Issues:

      Description

      Currently if you pass a passphrase protected ssh key via the -i flag, you are prompted for the passphrase to unlock the key.

      However if you do not provide the -i flag, you are not prompted even though it correctly finds the keys.

      Looking at the code it appears as though the change to use tryEncryptedKey() that was made to the -i branch of code was not also changed in the "default file" area.

        Attachments

          Issue Links

            Activity

            Hide
            krischik Martin Krischik added a comment -

            Interesting. I am never asked for a password at all. I suspect the use of System.Console here.

            Show
            krischik Martin Krischik added a comment - Interesting. I am never asked for a password at all. I suspect the use of System.Console here.

              People

              • Assignee:
                Unassigned
                Reporter:
                r2b2_nz Richard Bywater
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: