1. 程式人生 > >mac系統idea開發工具git -push 報錯:no matching host key type found. Their offer: ssh-dss

mac系統idea開發工具git -push 報錯:no matching host key type found. Their offer: ssh-dss

bsp 開發 版本 git cheng 算法 com push href

原因:

根本原因之所以報錯是因為OpenSSH7.0以後的版本不再支持ssh-dss(DSA)算法,官方的說法是這個算法太弱了。MACOS升到10.12附帶的openssh版本是7.4,如下:?~sshd-Vsshd:illegaloption--VOpenSSH_7

解決方案:

命令行裏添加選項
ssh -oHostKeyAlgorithms=+ssh-dss [email protected]
添加 HostKeyAlgorithms +ssh-dss到配置 ~/.ssh/config

mac系統idea開發工具git -push 報錯:no matching host key type found. Their offer: ssh-dss