1. visit http://jenkins/credentials/store/system/domain/_/
      2. click the wrench for a SSH Username with private key item

      Actual results:

      • Scope
      • ID
      • Description 
      • Username
      • Private Key
        • Enter directly
        • Key Concealed for Confidentiality [Replace]
      • Passphrase

      Expected results:

      Private Key should be Key, and under Enter directly, there should be a Public Key showing the current calculated Public Key. The item currently labeled as Key should be renamed Private Key.

      See also JENKINS-56940

       

          [JENKINS-60215] Show ssh public keys in ssh key editing ui

          Jason Pyeron added a comment -

          conversation on mailing list says best approach is to:

          pipeline {
             agent any
             parameters {
                credentials credentialType: 'com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey', defaultValue: '', description: '', name: 'credential', required: true
              }
             stages {
                stage('Hello') {
                   steps {
                      sshagent([params.credential]) {
                          sh 'ssh-add -L'
                      }
                   }
                }
             }
          }
          
          

          Jason Pyeron added a comment - conversation on mailing list says best approach is to: pipeline { agent any parameters { credentials credentialType: 'com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey' , defaultValue: '', description: ' ', name: ' credential', required: true } stages { stage( 'Hello' ) { steps { sshagent([params.credential]) { sh 'ssh-add -L' } } } } }

          Josh Soref added a comment -

          We pay extra whenever we run jobs as we use on demand nodes exclusively.

          The idea that someone would have to create jobs to do this is at least user hostile.

          Josh Soref added a comment - We pay extra whenever we run jobs as we use on demand nodes exclusively. The idea that someone would have to create jobs to do this is at least user hostile.

          Jason Pyeron added a comment -

          This is why I am trying to patch the plugin right now.

          In our case, those who need the public key (systems admins) do not have the ability to create jobs either.

          Jason Pyeron added a comment - This is why I am trying to patch the plugin right now. In our case, those who need the public key (systems admins) do not have the ability to create jobs either.

            Unassigned Unassigned
            jsoref Josh Soref
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: