jenkinsci / jenkinsci/ssh-credentials-plugin

[JENKINS-58213] Jenkins Slave Can't reach Gitlab, but Server can

Open
#314 1 comment 0 reactions 0 assignees View on GitHub
component:ssh-credentials-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
25
Forks
69
PR merge metrics
No merged PRs in 30d

Description

I have the correct id_rsa key under my Jenkins user's .ssh folder, and when I log onto the box and run a git clone command, it works fine. However, whenever that slave does a build and tries the exact same git clone command from the same repo, I just get "Permission denied (public key)." 

 

There's no passphrase on the key, it has the correct permissions, etc. Not sure what's going on...

---
Originally reported by mcarter94, imported from: Jenkins Slave Can't reach Gitlab, but Server can


  • assignee: jvz
  • status: Open
  • priority: Minor
  • component(s): ssh-credentials-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251215-193512

Raw content of original issue

I have the correct id_rsa key under my Jenkins user's .ssh folder, and when I log onto the box and run a git clone command, it works fine. However, whenever that slave does a build and tries the exact same git clone command from the same repo, I just get "Permission denied (public key)." 

 

There's no passphrase on the key, it has the correct permissions, etc. Not sure what's going on...

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.