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
- Dominant language
- Java
- Stars
- 63
- Forks
- 81
- Avg merge
- 5h 36m
- Merged PRs (30d)
- 9
Description
- Create public and private keys.
ssh-keygen -t ed25519 -C mymail@mail.com
got 2 files: id_ed25519, id_ed25519.pub
- Add id_ed25519.pub to SSH Keys of git.
- Create a credential ID.

- Use it for our Job and we could not visit git.

- 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
dnusbaum
Raw content of original issue
- Create public and private keys.
ssh-keygen -t ed25519 -C mymail@mail.com![]()
got 2 files: id_ed25519, id_ed25519.pub
- Add id_ed25519.pub to SSH Keys of git.
- Create a credential ID.
- Use it for our Job and we could not visit git.
- 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-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
Assessment
This issue has not been assessed yet.