Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jgraffin/15eeae444e06af78e61a54de3c4afef8 to your computer and use it in GitHub Desktop.
Save jgraffin/15eeae444e06af78e61a54de3c4afef8 to your computer and use it in GitHub Desktop.
FIX: The authenticity of host github.com can't be established.

Error

The authenticity of host 'github.com (140.82.113.4)' can't be established.

Fix

ssh-keyscan github.com >> ~/.ssh/known_hosts

Example (eg. using CircleCI workflow)

- run:
    name: Add github.com to known hosts
    command: ssh-keyscan github.com >> ~/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment