解决 windows 在./ssh文件夹下面,创建文件config,里面写上 Host gitlab.com Hostname altssh.gitlab.com User git Port 443 PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa