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 with doctl compute ssh --ssh-agent-forwarding, this looks like it might be a bug in doctl 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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
