Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

can't connect to virtual machine linux created by puppet #33

Open
thdotnet opened this issue Oct 24, 2014 · 1 comment
Open

can't connect to virtual machine linux created by puppet #33

thdotnet opened this issue Oct 24, 2014 · 1 comment

Comments

@thdotnet
Copy link

I'm trying to automate my infrastructure using puppet with Azure.

I've created my puppet master using puppet enterprise VM from gallery on Azure. After that, I've generated a certificate running the following commands:

sudo openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout cert.pem -out cert.pem
sudo openssl x509 -inform PEM -in cert.pem -outform DER -out cert.cer

Then, I've uploaded my cert file to Azure Management Portal and finally, I've create a VM with the following command:

puppet azure_vm create --management-certificate /tmp/cert.pem --azure-subscription-id=xxxxxx --image 0b11de9248dd4d87b18621318e037d37__RightImage-Ubuntu-12.04-x64-v13.4 --location 'west us' --vm-name puppetslave --vm-user xxxx --password xxxxx --puppet-master-ip 23.102.xxx.xxx

Finally, I've exported my private key using PuttyGen and I'm using it to connect to my new linux vm. Unfortunately, I'm getting the following error:

server refused out key

And I don't know why. I'm stuck at this point and don't know how to proceed.

@thdotnet
Copy link
Author

I also tried a connection directly through ssh on linux and I'm getting the following error:

"permission denied (publickey)".

I believe it's not a problem with my certificate because I did a test creating a new linux vm and using my cer file instead of password and could connect to it using SSH.

Ps: It's the same cer/pem file that I've used on puppet command.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant