我正在使用chef在VPC中创建Amazon EC2实例。我使用
--associate-eip
选项在knife ec2 server create命令中为新实例分配了一个弹性IP地址。如果没有网关机器,如何引导它?当它使用新创建的服务器的私有IP进行ssh时,它会卡在“等待sshd”上,尽管它已经分配了弹性IP地址。我漏掉了什么吗?这是我使用的命令:bundle exec knife ec2 server create --subnet <subnet> --security-group-ids
<security_group> --associate-eip <EIP> --no-host-key-verify --ssh-key <keypair>
--ssh-user ubuntu --run-list "<role_list>"
--image ami-59590830 --flavor m1.large --availability-zone us-east-1b
--environment staging --ebs-size 10 --ebs-no-delete-on-term --template-file
<bootstrap_file> --verbose
有没有其他的解决方法或补丁来解决这个问题?
提前致谢。
--no-host-key-verify
选项(请参见此处 和knife ec2 server create --help
)。 - Tung Nguyen