Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Faiz-Alam-GitHub/7eb9258755d127aa4804339448e43e8e to your computer and use it in GitHub Desktop.
Save Faiz-Alam-GitHub/7eb9258755d127aa4804339448e43e8e 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