Skip to content

packer build - Unable to connect to the source AMI #77

@clementcohen

Description

@clementcohen

Overview of the Issue

I follow this documentation to build my own fedora AMI ( https://docs.outscale.com/en/userguide/Migrating-a-Linux-Instance-to-the-OUTSCALE-Cloud.html#_migrate_the_instance_from_aws ).

After creating the AMI, packer refuse to connect to it but I can "manualy" with the same key

2022/09/10 10:45:14 machine readable: coreos-outscale.osc-bsusurrogate.coreos,error []string{"Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain"}

Reproduction Steps

Plugin and Packer version

Packer v1.7.10

Simplified Packer Buildfile

outscale.pkd.hcl

Operating system and Environment details

Ubuntu on WSL

Log Fragments and crash.log files

https://gist.github.com/clementcohen/45deb8331fe9aa3f164f2756f42077c6
Set the env var PACKER_LOG=1 for maximum log detail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions