虚空之都
前几天遇到一个怪问题关于gitlab 和 ssh-key
当时偶然就看到过,和mac系统的升级有关系。
https://zhuanlan.zhihu.com/p/577209888
其实就是 —— 引用:
其实原因就是Ventura系统自带的ssh客户端(openssh 9.0),是默认关闭了rsa加密的!但是可以通过在路径”/etc/ssh“(或”/private/etc/ssh“,前者是快捷方式)路径下找到ssh_config文件。将其打开,在最后添加两行(保存的时候需要提供权限,不会终端权限的建议使用Visual Sutdio Code,保存的时候会提示输密码)HostkeyAlgorithms +ssh-rsa PubkeyAcceptedAlgorithms +ssh-rsa搞定!亲测有效!
HostkeyAlgorithms +ssh-rsa PubkeyAcceptedAlgorithms +ssh-rsa
其他细节也可以在这篇知乎文章和评论中看到。
Posted
in
by
voidtemple
Tags:
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Leave a Reply