Devstack cannot ssh into VM when using Heat

时间:2015-10-30 22:19:59

标签: devstack openstack-heat

I am using devstack on my Mac. When launching an instance via the console, I can ssh into the new instance using the appropriate key. However, if I launch an instance using a Heat stack-create, defining the same key pair and the same image and all that, I cannot ssh into the VM.

Does anyone have an idea why that may be happening? I keep getting "Permission denied (publickey).", which indicates that the key was apparently not injected into the new VM, but as I said, this only breaks if I use Heat.

1 个答案:

答案 0 :(得分:1)

问题解决了。我发现对于Heat部署的实例,我需要以ec2-user身份登录。我使用'ubuntu'作为登录用户,这适用于手动启动的实例(当然,对于我的Ubuntu图像)。