/home/www/.ssh/id_rsa
中有兩個部署公鑰
---begin---
github
--end--
---begin--
git.oschina.net
---end--
使用 clone 從 github 上沒問題,換到 其他公鑰(平台)就不行了。提示錯誤如下:
RSA key fingerprint is 98:ab:2b:30:60:00:82:86:bb:85:db:87:22:c4:4f:b1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '101.70.156.64' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
已解決
在
~/.ssh/config
中新增規則就好了。http://blog.sina.com.cn/s/blo...
修改config就行了