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

文章目录

    我在几台服务器上都遇到了这个问题,不知道什么原因,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 时的免密码操作方法

    关于作者 🌱

    我是来自山东烟台的一名开发者,有感兴趣的话题,或者软件开发需求,欢迎加微信 zhongwei 聊聊,或者关注我的个人公众号“大象工具”, 查看更多联系方式