jenkinsci / jenkinsci/ssh-agent-plugin

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

Open
#263 1 comment 0 reactions 0 assignees View on GitHub
component:ssh-agent-plugin imported-jira-issue priority:critical resolution:unresolved
Dominant language
Java
Stars
63
Forks
81
Avg merge
5h 36m
Merged PRs (30d)
9

Description


  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

- [image-2022-05-31-18-08-08-583.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-last/refs/heads/main/attachments/58105/image-2022-05-31-18-08-08-583.png)
> ![image-2022-05-31-18-08-08-583.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-last/refs/heads/main/attachments/58105/image-2022-05-31-18-08-08-583.png)
- [image-2022-05-31-18-12-44-714.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/58104/image-2022-05-31-18-12-44-714.png)
> ![image-2022-05-31-18-12-44-714.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/58104/image-2022-05-31-18-12-44-714.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.