hashicorp / packer

Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
http://www.packer.io
Other
15.12k stars 3.33k forks source link

SSH handshake fails for 1&1 builder #4501

Closed pellepelster closed 7 years ago

pellepelster commented 7 years ago

When starting with the minimal template given in den 1&1 builder documentation:

{
   "builders":[
      {
         "type":"oneandone",
         "disk_size":"50",
         "image_name":"test5",
         "source_image_name":"ubuntu1604-64min",
         "ssh_username" :"root"
      }
   ]
}

the build fails with Build 'oneandone' errored: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain. packer version is 0.12.2, a debug log of the packer run is available at https://gist.github.com/pellepelster/eae34cd7db80285452957b87926e3d59

jasmingacic commented 7 years ago

@pellepelster Sorry for the late reply You need to add "ssh_private_key_file" in you config file.

{
   "builders":[
      {
         "type":"oneandone",
         "disk_size":"50",
         "image_name":"test_01",
         "source_image_name":"ubuntu1604-64min",
         "ssh_username" :"root",
        "ssh_private_key_file" : "/path/to/private/ssh/key"
      }
   ]
}
mwhooker commented 7 years ago

@jasminSPC please update the example to reflect the minimum template needed before marking this as resolved

jasmingacic commented 7 years ago

@mwhooker Sorry for the late reply I've just submitted a PR with updated docs.

ghost commented 4 years ago

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.