Try ssh-keyscan , then append the output to ~/.ssh/known_hosts
ssh-keyscan git.server.com >> ~/.ssh/known_hosts
Try ssh-keyscan , then append the output to ~/.ssh/known_hosts
ssh-keyscan git.server.com >> ~/.ssh/known_hosts