Skip to content

Instantly share code, notes, and snippets.

@balgarath
Created March 5, 2013 08:05
Show Gist options
  • Save balgarath/5088722 to your computer and use it in GitHub Desktop.
Save balgarath/5088722 to your computer and use it in GitHub Desktop.
Chef Knife SSH Rackspace solution to Net::SSH::HostKeyMismatch
You'll get this w/ rackspace cloud when an IP in your cloud gets re-used(if you deleted a server, and then later create a server that gets assigned the old one's IP). You can disable this error by adding the following to .ssh/config, however be aware of the security considerations here...namely, if Rackspace DNS is compromised, you won't have any warning if the hostname gets pointed to a different computer.
Host *static.cloud-ips.com
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment