赞
踩
错误原因:没有在config文件中指定平台所用的私钥路径,默认用平台文件名私钥去配对了。
第一步:在ssh目录下查看是否有config文件,没有就在终端ssh目录下输入
touch config
第二步:编辑config文件
- # GitHub
- Host github.com
- HostName github.com
- User git
- IdentityFile ~/.ssh/id_custome_name //创建的私钥名
第三步:再次测试
ssh -T git@github.com
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。