{"action":"created","issue":{"url":"https://api.github.com/repos/docker/machine/issues/1445","repository_url":"https://api.github.com/repos/docker/machine","labels_url":"https://api.github.com/repos/docker/machine/issues/1445/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/1445/comments","events_url":"https://api.github.com/repos/docker/machine/issues/1445/events","html_url":"https://github.com/docker/machine/issues/1445","id":92398746,"number":1445,"title":"Digital Ocean Driver creates a new ssh key everytime.","user":{"login":"usmanismail","id":204682,"avatar_url":"https://avatars.githubusercontent.com/u/204682?v=3","gravatar_id":"","url":"https://api.github.com/users/usmanismail","html_url":"https://github.com/usmanismail","followers_url":"https://api.github.com/users/usmanismail/followers","following_url":"https://api.github.com/users/usmanismail/following{/other_user}","gists_url":"https://api.github.com/users/usmanismail/gists{/gist_id}","starred_url":"https://api.github.com/users/usmanismail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usmanismail/subscriptions","organizations_url":"https://api.github.com/users/usmanismail/orgs","repos_url":"https://api.github.com/users/usmanismail/repos","events_url":"https://api.github.com/users/usmanismail/events{/privacy}","received_events_url":"https://api.github.com/users/usmanismail/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/machine/labels/area/ssh","name":"area/ssh","color":"006b75"},{"url":"https://api.github.com/repos/docker/machine/labels/driver/digitalocean","name":"driver/digitalocean","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-01T14:27:33Z","updated_at":"2016-04-01T09:55:49Z","closed_at":"2016-03-03T19:34:19Z","body":"Currently there is no way to tell the digital ocean driver use a preexisting ssh key. This leads to a lot of cruft with new keys for every instance launch "},"comment":{"url":"https://api.github.com/repos/docker/machine/issues/comments/204335172","html_url":"https://github.com/docker/machine/issues/1445#issuecomment-204335172","issue_url":"https://api.github.com/repos/docker/machine/issues/1445","id":204335172,"user":{"login":"michaelkrog","id":681472,"avatar_url":"https://avatars.githubusercontent.com/u/681472?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelkrog","html_url":"https://github.com/michaelkrog","followers_url":"https://api.github.com/users/michaelkrog/followers","following_url":"https://api.github.com/users/michaelkrog/following{/other_user}","gists_url":"https://api.github.com/users/michaelkrog/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkrog/subscriptions","organizations_url":"https://api.github.com/users/michaelkrog/orgs","repos_url":"https://api.github.com/users/michaelkrog/repos","events_url":"https://api.github.com/users/michaelkrog/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkrog/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T09:55:49Z","updated_at":"2016-04-01T09:55:49Z","body":"I am having issues using this feature.\r\n\r\nI create a machine like this:\r\n```bash\r\ndocker-machine --debug create --driver digitalocean --digitalocean-access-token xxxxx --digitalocean-size 1gb --digitalocean-region ams2 --digitalocean-image 2321312 --digitalocean-ssh-user devops --digitalocean-ssh-key-fingerprint \"04:1e:b1:c4:96:40:14:26:cf:cb:13:df:68:f2:af:13\" docker-test\r\n```\r\n\r\nIt creates the machine, but fails when it comes to establishing the SSH connection. Full debug output:\r\n\r\n> Docker Machine Version:  0.7.0-rc1, build 0fb68ca\r\n> Found binary path at /usr/local/bin/docker-machine\r\n> Launching plugin server for driver digitalocean\r\n> Plugin server listening at address 127.0.0.1:33228\r\n> () Calling .GetVersion\r\n> Using API Version  1\r\n> () Calling .SetConfigRaw\r\n> () Calling .GetMachineName\r\n> (flag-lookup) Calling .GetMachineName\r\n> (flag-lookup) Calling .DriverName\r\n> (flag-lookup) Calling .GetCreateFlags\r\n> Found binary path at /usr/local/bin/docker-machine\r\n> Launching plugin server for driver digitalocean\r\n> Plugin server listening at address 127.0.0.1:36842\r\n> () Calling .GetVersion\r\n> Using API Version  1\r\n> () Calling .SetConfigRaw\r\n> () Calling .GetMachineName\r\n> (previsto-test) Calling .GetMachineName\r\n> (previsto-test) Calling .DriverName\r\n> (previsto-test) Calling .GetCreateFlags\r\n> (previsto-test) Calling .SetConfigFromFlags\r\n> Running pre-create checks...\r\n> (previsto-test) Calling .PreCreateCheck\r\n> (previsto-test) Calling .GetConfigRaw\r\n> Creating machine...\r\n> (previsto-test) Calling .Create\r\n> (previsto-test) Creating SSH key...\r\n> (previsto-test) Creating Digital Ocean droplet...\r\n> (previsto-test) Waiting for IP address to be assigned to the Droplet...\r\n> (previsto-test) Calling .GetConfigRaw\r\n> (previsto-test) DBG | Created droplet ID 12642079, IP address 82.196.14.245\r\n> (previsto-test) Calling .DriverName\r\n> (previsto-test) Calling .DriverName\r\n> Waiting for machine to be running, this may take a few minutes...\r\n> (previsto-test) Calling .GetState\r\n> (previsto-test) Calling .GetState\r\n> (previsto-test) Calling .GetState\r\n> (previsto-test) Calling .GetState\r\n> (previsto-test) Calling .GetState\r\n> (previsto-test) Calling .GetState\r\n> (previsto-test) Calling .GetState\r\n> (previsto-test) Calling .GetState\r\n> (previsto-test) Calling .GetState\r\n> (previsto-test) Calling .GetState\r\n> (previsto-test) Calling .GetState\r\n> (previsto-test) Calling .GetState\r\n> Detecting operating system of created instance...\r\n> Waiting for SSH to be available...\r\n> Getting to WaitForSSH function...\r\n> (previsto-test) Calling .GetSSHHostname\r\n> (previsto-test) Calling .GetSSHPort\r\n> (previsto-test) Calling .GetSSHKeyPath\r\n> (previsto-test) Calling .GetSSHKeyPath\r\n> (previsto-test) Calling .GetSSHUsername\r\n> Using SSH client type: external\r\n> &{[-o BatchMode=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none devops@82.196.14.245 -o IdentitiesOnly=yes -i /var/lib/jenkins/.docker/machine/machines/docker-test/id_rsa -p 22] /usr/bin/ssh <nil>}\r\n> About to run SSH command:\r\n> exit 0\r\n> SSH cmd err, output: exit status 255: Warning: Identity file /var/lib/jenkins/.docker/machine/machines/docker-test/id_rsa not accessible: No such file or directory.\r\n> \r\n> Error getting ssh command 'exit 0' : Something went wrong running an SSH command!\r\n> command : exit 0\r\n> err     : exit status 255\r\n> output  : Warning: Identity file /var/lib/jenkins/.docker/machine/machines/docker-test/id_rsa not accessible: No such file or directory.\r\n> "}}