Created
January 13, 2013 20:03
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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