Skip to content

[JENKINS-68647] Jenkins Plugin ssh-agent could not ssh-add sucessfully a private key which is created as a jenkins credential ID  #263

Description

@jenkins-infra-bot
  1. Create public and private keys.
    ssh-keygen -t ed25519 -C mymail@​mail.com
    got 2 files: id_ed25519, id_ed25519.pub
  1. Add id_ed25519.pub to SSH Keys of git. 
  2. Create a credential ID.
  3. Use it for our Job and we could not visit git. 
  4.  As a hint, when we use git 2.36.1, it shows Permission denied (publickey). But when we use git 2.21.0, it shows invalid format for private key. 

Originally reported by fiann, imported from: Jenkins Plugin ssh-agent could not ssh-add sucessfully a private key which is created as a jenkins credential ID
  • assignee: dnusbaum
  • status: Open
  • priority: Critical
  • component(s): ssh-agent-plugin
  • label(s): SSH, ssh-agent
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20260604-211335
Raw content of original issue
  1. Create public and private keys. ssh-keygen -t ed25519 -C mymail@mail.com got 2 files: id_ed25519, id_ed25519.pub
  1. Add id_ed25519.pub to SSH Keys of git. 
  2. Create a credential ID.
  3. Use it for our Job and we could not visit git. 
  4.  As a hint, when we use git 2.36.1, it shows Permission denied (publickey). But when we use git 2.21.0, it shows invalid format for private key. 
  • environment: Slave is windows 10. Private Key is ed25519.
2 attachments

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions