Passing ssh options to git clone

后端 未结 7 925
礼貌的吻别
礼貌的吻别 2020-11-30 23:16

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         


        
相关标签:
7条回答
  • 2020-12-01 00:02

    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.

    0 讨论(0)
提交回复
热议问题