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
User beware: doing this method above leaves you vulnerable to man-in-the-middle attacks. Instead, I'd recommend following GitHub's documentation on Testing your SSH connection. Pay special attention to the step where they ask you to compare the fingerprint returned in command line with GitHub's public fingerprint.