Git: Unable to negotiate with * port 22: no matching host key type found. Their offer: ssh-rsa.

出自Silica Library | 間奏時光
於 2022年1月14日 (五) 06:29 由 Silica對話 | 貢獻 所做的修訂 (创建页面,内容为“Category:Windows 2022-01-14 14:25 == Method ==   Edit C:\Users\<YourName>\.ssh\config (Create file "config" if not exist): <pre> Host * HostkeyAlgorithms +s…”)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳至導覽 跳至搜尋

2022-01-14 14:25

Method

  Edit C:\Users\<YourName>\.ssh\config (Create file "config" if not exist):

Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

  Save. Close the Git and try again.