Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lcuevastodoit/53d0a758eacbf16ec178adc47db8ad8f to your computer and use it in GitHub Desktop.
Save lcuevastodoit/53d0a758eacbf16ec178adc47db8ad8f to your computer and use it in GitHub Desktop.
github refresh known hosts rsa host key
ssh-keygen -R github.com
sudo sh -c "> ~/.ssh/known_hosts" # only if you can delete everything
ssh-keyscan github.com >> ~/.ssh/known_hosts
git pull
@lcuevastodoit
Copy link
Author

sudo sh -c "> ~/.ssh/known_hosts" IS OPTIONAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment