coding.net 无法识别 pub key 的问题

发布时间: 2016-07-09 15:12:33 作者: 大象笔记

我在几台服务器上都遇到了这个问题,不知道什么原因,coding.net 就是识别不了本机生成的 pub key. 但是同样的 key 在 bitbucket 和 github 上都没有问题。

一种简单粗暴的方式是

git config --global credential.helper store

但是这是一种非常不安全的方式,因为账号和密码会明文保存到用户根目录下的文件 ~/.git-credentials 中。

Using this helper will store your passwords unencrypted on disk, protected only by filesystem permissions. If this is not an acceptable security tradeoff, try git-credential-cache(1), or find a helper that integrates with secure storage provided by your operating system.

最安全的方式还是采用加密的方式,参考这篇 HTTP 访问 git server 时的免密码操作方法

我是一名山东烟台的开发者,联系作者