1

Following the directions here: https://github.com/terraform-providers/terraform-provider-aws under "Building Provider" I get an authorization error.

git clone --depth=1 git@github.com:terraform-providers/terraform-provider-aws
Cloning into 'terraform-provider-aws'...
Permission denied (publickey).
fatal: Could not read from remote repository.> 
Please make sure you have the correct access rights
and the repository exists.

Suggestions?

StephenKing
  • 36,187
  • 11
  • 83
  • 112
  • Either add your SSH public key to your Github profile or use the HTTPS clone (`https://github.com/terraform-providers/terraform-provider-aws.git`) – ydaetskcoR Sep 18 '17 at 08:53
  • Possible duplicate of [How to provide username and password when run "git clone git@remote.git"?](https://stackoverflow.com/questions/10054318/how-to-provide-username-and-password-when-run-git-clone-gitremote-git) – BMW Sep 18 '17 at 12:54
  • Wouldn't call this a duplicate, as it is unnecessary to authenticate via SSH when cloning a public repo. – StephenKing Jan 16 '19 at 05:47

1 Answers1

3

You problem is not with the Terraform provider authorization, but rather with the Git access to github using SSH (as commented earlier). You might want to try HTTP for download, from the github portal, you can pick the SSH or HTTP download command from the "clone or download" button.

Francozen
  • 389
  • 2
  • 11