Skip to content

Instantly share code, notes, and snippets.

@sholloway
Created January 13, 2013 20:03
Show Gist options
  • Save sholloway/4525909 to your computer and use it in GitHub Desktop.
Save sholloway/4525909 to your computer and use it in GitHub Desktop.
After rebooting an ec2 instance, the domain name will change if not using Route 53 in front of it. Therefore, to connect with SSH you've got to remove the RSA token from your local known hosts file. Here's an easy way to do it. Change the number to the line that the SSH error message refers to.
sed -i".bak" '6d' ~/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment