Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH connection with passphrase causes infinite connection loop #14713

Closed
sethvargo opened this issue May 21, 2017 · 1 comment · Fixed by #15772
Closed

SSH connection with passphrase causes infinite connection loop #14713

sethvargo opened this issue May 21, 2017 · 1 comment · Fixed by #15772
Assignees

Comments

@sethvargo
Copy link
Contributor

Terraform Version

Terraform v0.9.6-dev (030f26b+CHANGES)

Affected Resource(s)

  • core/provisioners

Terraform Configuration Files

resource "null_resource" "example" {
  connection {
    host = "1.2.3.4"
    user = "ubuntu"
  }

  provisioner "remote-exec" {
    inline = ["echo hi"]
  }
}

Expected Behavior

Terraform should prompt or error when the SSH key is secured by a password.

Actual Behavior

Terraform continuously tries to establish a remote connection (like a million times a second, spiking CPU to 100%+)

Steps to Reproduce

  1. Add a passkey to an SSH key
  2. Make sure the key is not added via ssh-add
  3. terraform apply
  4. Observe the massive output and infinite retries

Important Factoids

This only applies to people who have an SSH key secured with a password and they are not caching that password in the keychain.

The workaround is to manually run ssh-add and type in the passphrase(s), but Terraform is spamming with so much output that a CTRL + C takes 5-10min to stop after you realize this 😦.

@ghost
Copy link

ghost commented Apr 7, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants