SSH-Agent Forwarding in tart exec for Bitbucket Auth (Jenkins CI) #1174
Replies: 1 comment
-
|
For documentation: I copy the content of the SSH private key file directly into the VM's .ssh/ directory. The file is placed at the standard location ~/.ssh/. When authenticating to services, SSH automatically finds this file in the expected path and uses it successfully. No ssh-agent setup or forwarding is required. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Previously, I used SSH connections from Jenkins to my Tart VM and could seamlessly forward the SSH agent (
ssh -A) to authenticate against GitHub and Bitbucket (e.g., forgit clone/pull). After switching totart exec, this is no longer possible sincetart execcommunicates directly via the guest agent.Question: Is there a (recommended) way to authenticate from inside the VM (via
tart exec) to services like GitHub?Reproduction Steps
Permission denied (publickey)– no access to host SSH agent.Working Example (old SSH approach):
Agent forwarded, keys available inside VM.
I tried to add a SSH-Agent ((eval "$(ssh-agent -s)"; ssh-add ~/.ssh/id_rsa) inside the VM, but it seems not to be recognised from outside the VM. SSH forwarding was perfect in that regards – the current
tart execis great but I guess it lacks this bridge currently.Feedback/suggestions welcome!
Beta Was this translation helpful? Give feedback.
All reactions