{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/4657","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/4657/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/4657/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/4657/events","html_url":"https://github.com/hashicorp/terraform/issues/4657","id":126306939,"number":4657,"title":"SSH connection fails for Digital Ocean droplet","user":{"login":"thasmo","id":184284,"avatar_url":"https://avatars.githubusercontent.com/u/184284?v=3","gravatar_id":"","url":"https://api.github.com/users/thasmo","html_url":"https://github.com/thasmo","followers_url":"https://api.github.com/users/thasmo/followers","following_url":"https://api.github.com/users/thasmo/following{/other_user}","gists_url":"https://api.github.com/users/thasmo/gists{/gist_id}","starred_url":"https://api.github.com/users/thasmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thasmo/subscriptions","organizations_url":"https://api.github.com/users/thasmo/orgs","repos_url":"https://api.github.com/users/thasmo/repos","events_url":"https://api.github.com/users/thasmo/events{/privacy}","received_events_url":"https://api.github.com/users/thasmo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/digitalocean","name":"provider/digitalocean","color":"bfdadc"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/waiting-response","name":"waiting-response","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"assignees":[{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-01-12T23:57:39Z","updated_at":"2016-07-14T20:50:54Z","closed_at":"2016-07-14T20:50:54Z","body":"That's my tf-file:\r\n```js\r\nprovider \"digitalocean\" {\r\n\ttoken = \"secret\"\r\n}\r\n\r\nresource \"digitalocean_droplet\" \"dsta\" {\r\n\timage = \"docker\"\r\n\tname = \"dsta-1\"\r\n\tregion = \"ams3\"\r\n\tsize = \"1gb\"\r\n\tssh_keys = [\"8e:36:23:41:64:29:20:82:38:f9:2c:d4:e5:d8:5b:f4\"]\r\n\r\n\tprovisioner \"remote-exec\" {\r\n\t\tinline = [\r\n\t\t\t\"uname -a\"\r\n\t\t]\r\n\r\n\t\tconnection {\r\n\t\t\tprivate_key = \"${file(\"~/.ssh/id_digitalocean\")}\"\r\n\t\t}\r\n\t}\r\n}\r\n```\r\nOutput:\r\n```sh\r\nterraform apply\r\ndigitalocean_droplet.dsta: Creating...\r\n  image:                \"\" => \"docker\"\r\n  ipv4_address:         \"\" => \"<computed>\"\r\n  ipv4_address_private: \"\" => \"<computed>\"\r\n  ipv6_address:         \"\" => \"<computed>\"\r\n  ipv6_address_private: \"\" => \"<computed>\"\r\n  locked:               \"\" => \"<computed>\"\r\n  name:                 \"\" => \"dsta-1\"\r\n  region:               \"\" => \"ams3\"\r\n  size:                 \"\" => \"1gb\"\r\n  ssh_keys.#:           \"\" => \"1\"\r\n  ssh_keys.0:           \"\" => \"8e:36:23:41:64:29:20:82:38:f9:2c:d4:e5:d8:5b:f4\"\r\n  status:               \"\" => \"<computed>\"\r\ndigitalocean_droplet.dsta: Provisioning with 'remote-exec'...\r\ndigitalocean_droplet.dsta (remote-exec): Connecting to remote host via SSH...\r\ndigitalocean_droplet.dsta (remote-exec):   Host: xxx.xxx.xxx.xxx\r\ndigitalocean_droplet.dsta (remote-exec):   User: root\r\ndigitalocean_droplet.dsta (remote-exec):   Password: false\r\ndigitalocean_droplet.dsta (remote-exec):   Private key: true\r\ndigitalocean_droplet.dsta (remote-exec):   SSH Agent: false\r\ndigitalocean_droplet.dsta (remote-exec): Connecting to remote host via SSH...\r\ndigitalocean_droplet.dsta (remote-exec):   Host: xxx.xxx.xxx.xxx\r\ndigitalocean_droplet.dsta (remote-exec):   User: root\r\ndigitalocean_droplet.dsta (remote-exec):   Password: false\r\ndigitalocean_droplet.dsta (remote-exec):   Private key: true\r\ndigitalocean_droplet.dsta (remote-exec):   SSH Agent: false\r\ndigitalocean_droplet.dsta (remote-exec): Connecting to remote host via SSH...\r\ndigitalocean_droplet.dsta (remote-exec):   Host: xxx.xxx.xxx.xxx\r\ndigitalocean_droplet.dsta (remote-exec):   User: root\r\ndigitalocean_droplet.dsta (remote-exec):   Password: false\r\ndigitalocean_droplet.dsta (remote-exec):   Private key: true\r\ndigitalocean_droplet.dsta (remote-exec):   SSH Agent: false\r\ndigitalocean_droplet.dsta (remote-exec): Connecting to remote host via SSH...\r\ndigitalocean_droplet.dsta (remote-exec):   Host: xxx.xxx.xxx.xxx\r\ndigitalocean_droplet.dsta (remote-exec):   User: root\r\ndigitalocean_droplet.dsta (remote-exec):   Password: false\r\ndigitalocean_droplet.dsta (remote-exec):   Private key: true\r\ndigitalocean_droplet.dsta (remote-exec):   SSH Agent: false\r\n```\r\nSSH key is without password and public counterpart is stored on Digital Ocean. Using `ssh` directly allows connecting to the droplet without problems."}}
{"actor":{"display_login":"thasmo"}}