阿里云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