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

Passphrase not prompted for default key files

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • cli
    • None

    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

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

            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

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

              Dates

                Created:
                Updated: