Hello! I’m having trouble getting doctl compute ssh <droplet-id> --ssh-agent-forwarding
to work. I’m trying to forward my connection from my local ssh-agent to a droplet, so that I can use my GitHub credentials on that droplet, but it doesn’t succeed. If I try plain old SSH with ssh -A root@<droplet-ip-address>
then it works fine. What sorts of things could contribute to this problem? Thanks! P.S. Here’s a screencast illustrating it:
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey David!
First off, that asciinema is awesome! Super helpful for understanding the issue!
I think that, since SSH agent forwarding works fine with
ssh -A
but not withdoctl compute ssh --ssh-agent-forwarding
, this looks like it might be a bug indoctl
rather than a misconfiguration on your end.I’d recommend opening an issue on the
doctl
GitHub repo so the DigitalOcean team can investigate: 🔗 https://github.com/digitalocean/doctl/issues/Make sure to include the asciinema video in the issue as well! Once you submit the issue, feel free to share it here as well and I can try to forward it internally!
- Bobby