-
Notifications
You must be signed in to change notification settings - Fork 75
Permission denied (publickey). fatal: Could not read from remote repository. #45
Comments
Weird! Try again once this PR is merged though #44 and then we will have a look |
Hi, We are using terraform on windows and we are getting this error if we use SSH, when we change the source to use HTTPS it works. This does not work
This works
Using git command manually works perfectly. I was suspecting this to be a windows-only problem? |
Hi, Having the same issue here. Terraform 0.12.8. HTTPS works: SSH fails: Git works standalone to drag these items over ssh using my ssh key that is set systemwide. I can only assume that Terraform's call for git is doing something funky with ssh. Does appear to be windows only, all my colleagues are using Linux with the same tf files without issues. |
Found a way to get this working. In addition to this, the implementation of GIT_SSH_COMMAND isn't Windows friendly, so it needs the path to ssh.exe to be escaped for \ characters. GIT_SSH_COMMAND = All other config remained the same as per my previous comment. If someone from Hashicorp reads this, it could do with being much more obvious (documented) and possibly a better design for Windows. |
This approach worked for me on windows. I had to run |
Hi, I'm seeing the same issue running TF 0.12.21, Ubuntu 16.04.
|
If you're only seeing the issue with Windows, then you are probably seeing what I have discussed here: hashicorp/terraform#19232 (comment) |
I use pagent, so my env var had to be
|
This was definitely a problem for me on Windows. To get the SSH working with Terraform, I had to do:
If you're not sure where your
Note, the above |
Environment
Terraform: 0.12.3
Problem
Trying to initialize terraform with
terraform-google-consul
module version of0.4.0
- https://github.com/hashicorp/terraform-google-consul/releases/tag/v0.4.0Getting an error on
terraform init
:Here is the snippet of my main.tf file referencing a module:
Not sure what's going on here..
The text was updated successfully, but these errors were encountered: