将ssh私钥拷贝到/.ssh目录下如果是linux或者是macOS需要更改文件读写权限,方法如下然后就可以正常使用了 cd ~/.ssh chmod 600 id_rsa chmod 644 id_rsa.pub