Follow

阿里云code的一个小坑:他们的SSH只支持ssh-rsa算法:

Unable to negotiate with 198.18.0.27 port 22: no matching host key type found. Their offer: ssh-rsa
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

解决方法:

Host code.aliyun.com
  AddKeysToAgent yes
  HostkeyAlgorithms +ssh-rsa
  IdentityFile ~/.ssh/id_ed25519
· · Web · 0 · 0 · 2
Sign in to participate in the conversation
小森林

每个人都有属于自己的一片森林,也许我们从来不曾走过,但它一直在那里,总会在那里。迷失的人迷失了,相逢的人会再相逢。愿这里,成为属于你的小森林。