git 服务器拒绝密码或 ssh-key
git server refusing password or ssh-key
我目前有一个 git 我在家使用的服务器,为如下所示的多用户私人存储库设置
/opt/git
/opt/git/me/..all my projects here
/opt/git/someotheruser/...all his/her projects here
我有 git-shell 就地,现在几个月后我试图从另一个盒子访问我的回购,但它不允许我这样做,所以我仍然能够从我的笔记本电脑推送所有这些,但无法使用我的新台式机连接到服务器。我需要做什么我正在使用 ubuntu 和最新的 git 版本。
您的新机器有不同的 SSH 密钥。您需要从这台新机器上传 SSH public 密钥到 git-shell 以便 git-shell 可以识别您。 (您可以根据需要拥有任意数量的 SSH public 密钥。)
我目前有一个 git 我在家使用的服务器,为如下所示的多用户私人存储库设置
/opt/git
/opt/git/me/..all my projects here
/opt/git/someotheruser/...all his/her projects here
我有 git-shell 就地,现在几个月后我试图从另一个盒子访问我的回购,但它不允许我这样做,所以我仍然能够从我的笔记本电脑推送所有这些,但无法使用我的新台式机连接到服务器。我需要做什么我正在使用 ubuntu 和最新的 git 版本。
您的新机器有不同的 SSH 密钥。您需要从这台新机器上传 SSH public 密钥到 git-shell 以便 git-shell 可以识别您。 (您可以根据需要拥有任意数量的 SSH public 密钥。)