I\'m trying to run git clone
without ssh checking the repository host\'s key. I can do it from ssh like that:
ssh -o UserKnownHostsFile=/dev/nul
This issue has been fixed by doing follow step's in Window machine:-
Create config file under C:\Users\username.ssh folder.
add the following line to a config file.
host <HOST>
hostname <HOSTNAME>
user <USER_NAME>
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
port <PORT_NUMBER>
KexAlgorithms +diffie-hellman-group1-sha1
then try again.