简体   繁体   English

我不想将eip附加到我的厨师客户

[英]I dont want to attach eip to my chef-client

my chef server is in vpc i want to execute this command without eip 我的厨师服务器在vpc中,我想在没有eip的情况下执行此命令

knife ec2 server create -r "role[test1]" -I ami-axxxxx --flavor t1.micro -x ubuntu --ssh-key JP_Key -Z us-east-1c --subnet subnet-c1b6d5a8 -g sg-b1e70bde -p 22 --fqdn mynewclientnode.example.com --tags Name=test_knife

im getting this error 我收到这个错误

ERROR: Net::SSH::HostKeyMismatch: fingerprint 5f:4b:f6:4d:9b:8a:88:a0:9d:fd:9f:ea:5c:ad:31:ef does not match for "10.220.15.174"

10.220.15.174 is ip of newly launched instance. 10.220.15.174是新启动的实例的ip。

when i attach eip chef-client is instanlling. 当我附加eip大厨时,客户端就很响了。

Is there any way to do it. 有没有办法做到这一点。

This is not a Chef, knife, or AWS error. 这不是Chef,Knife或AWS错误。 For security reasons, SSH stores the fingerprints of systems in a local cache the first time you connect. 出于安全原因,SSH首次连接时会将系统指纹存储在本地缓存中。 If that fingerprint changes (like if you re-provision a server using the same FQDN), SSH will throw this error. 如果该指纹发生更改(例如,如果您使用相同的FQDN重新配置服务器),则SSH将引发此错误。 This is primarily to prevent MITM attacks (where you would be logging into a server that isn't what you think). 这主要是为了防止MITM攻击(在这种情况下,您将登录到不是您认为的服务器)。

To fix this error, remove that fingerprint from your ~/.ssh/known_hosts file and run the command again. 要解决此错误,请从~/.ssh/known_hosts文件中删除该指纹,然后再次运行命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM