If your cap deploy is failing, and you're logging into your server to troubleshoot manually, when you ssh to the server, if Agent forwarding is not already configured by default on your local machine, you'll need to enable it so you can communicate with github:
Troubleshooting tip:
If your cap deploy is failing, and you're logging into your server to troubleshoot manually, when you ssh to the server, if Agent forwarding is not already configured by default on your local machine, you'll need to enable it so you can communicate with github:
instead of:
ssh deployer@your-server.com
use:
ssh -A deployer@your-server.com