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
THIS IS THE WAY.
Best part is that this is a one time step, and once you've verified for yourself and type 'yes' it automagically adds github.com to known_hosts for you.
Going through the (one/single) extra step of manually verifying that the SHA listed in the terminal's warning message matches what is listed on GitHub's public fingerprint page is very simple and secure.
Cheers @tomigee!! 🏆 🎉