ssh-agent-plugin | plugin allows you to provide SSH credentials | SSH Utils library

 by   jenkinsci Java Version: ssh-agent-1.23 License: No License

kandi X-RAY | ssh-agent-plugin Summary

kandi X-RAY | ssh-agent-plugin Summary

ssh-agent-plugin is a Java library typically used in Utilities, SSH Utils applications. ssh-agent-plugin has no vulnerabilities, it has build file available and it has low support. However ssh-agent-plugin has 3 bugs. You can download it from GitHub.

This plugin allows you to provide SSH credentials to builds via a ssh-agent in Jenkins. This is convenient in some cases. Alternately, you can use the generic withCredentials step to bind an SSH private key to a temporary file and then pass that to commands that require it, for example using the -i option to ssh or scp.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ssh-agent-plugin has a low active ecosystem.
              It has 36 star(s) with 61 fork(s). There are 114 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              ssh-agent-plugin has no issues reported. There are 8 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ssh-agent-plugin is ssh-agent-1.23

            kandi-Quality Quality

              ssh-agent-plugin has 3 bugs (0 blocker, 0 critical, 2 major, 1 minor) and 81 code smells.

            kandi-Security Security

              ssh-agent-plugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ssh-agent-plugin code analysis shows 0 unresolved vulnerabilities.
              There are 4 security hotspots that need review.

            kandi-License License

              ssh-agent-plugin does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              ssh-agent-plugin releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              ssh-agent-plugin saves you 853 person hours of effort in developing the same functionality from scratch.
              It has 1520 lines of code, 86 functions and 15 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ssh-agent-plugin and discovered the below as its top functions. This is intended to give you an instant insight into ssh-agent-plugin implemented functionality, and help decide if they suit your requirements.
            • Check to see if there are any private keys in the build
            • Create an SSHAgentEnvironment
            • Gets the credentials
            • Returns a description of a standard username
            • Initialize the agent
            • Returns true if not found
            • Initialize a SSH agent
            • Get the credentials for the user
            • Parse the ssh - agent output
            • Parses the output from the ssh - agent output
            • Add an identity to the agent
            • Creates a script to delete the ssh_ASKPASSphrase
            • Clean up the SSHAgent
            • Purges all existing sockets
            • Checks if ssh - agent is installed
            • Start the remote agent
            • Gets the value of the credential holders
            • Stops the build
            • Resolves legacy data format
            • Gets the user id
            • Stops ssh - agent command
            Get all kandi verified functions for this library.

            ssh-agent-plugin Key Features

            No Key Features are available at this moment for ssh-agent-plugin.

            ssh-agent-plugin Examples and Code Snippets

            Jenkinsfile
            Javadot img1Lines of Code : 9dot img1no licencesLicense : No License
            copy iconCopy
                  steps {
                      sshagent(credentials: ['ssh-credentials-id']) {
                        sh '''
                            [ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh
                            ssh-keyscan -t rsa,dsa example.com >> ~/.ssh/known_hosts
                   

            Community Discussions

            QUESTION

            Jenkins SSH Agent Plugin shows empty drop down in Jenkins Job
            Asked 2020-Jan-07 at 22:03

            I am using SSH Agent Plugin version 1.17 with Jenkins version 2.190.3

            When I create credentials using Jenkins -> Credentials -> System -> Global credentials (unrestricted) -> Add Credentials

            But when I create jenkins job type Freestyle project, I don't see credentials in ssh agent drop down.

            Please advise what I am missing

            Ref:

            https://wiki.jenkins.io/display/JENKINS/SSH+Agent+Plugin

            https://support.cloudbees.com/hc/en-us/articles/360029470091-How-to-use-the-SSH-Agent-Plugin

            Jenkins plugin ssh-agent showing "ERROR: Failed to run ssh-add"

            Update:

            Issue is open for credentials (username/password) https://issues.jenkins-ci.org/browse/JENKINS-59807 but good thing is that it works with private key :)

            ...

            ANSWER

            Answered 2020-Jan-07 at 20:59

            You have to select Kind as SSH Username with private key to be able to specific use credentials in ssh agent:

            Source https://stackoverflow.com/questions/59635544

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ssh-agent-plugin

            You can download it from GitHub.
            You can use ssh-agent-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the ssh-agent-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/jenkinsci/ssh-agent-plugin.git

          • CLI

            gh repo clone jenkinsci/ssh-agent-plugin

          • sshUrl

            git@github.com:jenkinsci/ssh-agent-plugin.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular SSH Utils Libraries

            openssl

            by openssl

            solid

            by solid

            Bastillion

            by bastillion-io

            sekey

            by sekey

            sshj

            by hierynomus

            Try Top Libraries by jenkinsci

            jenkins

            by jenkinsciJava

            docker

            by jenkinsciPowerShell

            pipeline-examples

            by jenkinsciGroovy

            blueocean-plugin

            by jenkinsciJava