Skip to content

Unable to SSH - "Server Refused Our Key" #32

@anweiss

Description

@anweiss

I'm working on adding Microsoft Azure support for this project and am running in to an SSH issue that I can't seem to figure out. Upon attempting to SSH into a VM created from this image, the server fails to accept my key. I generated the cert/key with openssl as follows:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout myKey.key -out myCert.pem
chmod 600 myKey.key

The public cert subsequently gets uploaded via the Azure portal and placed in ~/.ssh/authorized_keys.

This issue doesn't seem to be related to packer-azure since I'm able to SSH into an image that's created without any Packer provisioners. This only seems to occur after the Chef recipe is applied via the chef-solo provisioner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions