git add known_hosts code example
Example: add known host github
#Mac:
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
#Windows:
ssh-keyscan -t rsa github.com >> %userprofile%/.ssh/known_hosts
#Mac:
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
#Windows:
ssh-keyscan -t rsa github.com >> %userprofile%/.ssh/known_hosts