I am trying to checkout a private repo from github.com onto my dev instance on EC2.
$ git clone git@github.com:Org/Product.git
Initialized empty Git repository in /home/ec2-user/Product/.git/
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
How do I do this? I tried SSH forwarding as well, but that didn't work.
ssh -v git@github.com
. You should get a message from github with your username, but you probably won't if there are issues. The -v will give you verbose output to help you see what ssh is doing and possibly track down the problem.