プロジェクト インターフェースの [Click to Deploy] を使用して、GitLab を Google Compute Engine にインストールしました。デプロイは数分後に成功します。インスタンスに SSH 接続して、期待どおりにいじることができます。
Web インターフェイスを使用して GitLab にログインし、SSH キーをプロファイルに追加することもできます。ここまでは順調ですね。ただし、新しいサンプル リポジトリにプッシュまたはプルしようとすると、次のメッセージが表示されます。
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
干渉しないように、ローカルの SSH 構成を削除しました。ある種の SSH トンネルをセットアップする必要がありますか? 私は何が欠けていますか?
更新:ローカルの ~/.ssh フォルダーを消去し、SSH キー (GitLab のプロファイルに追加したもの) を再生成すると、次のエラーが発生します。
Received disconnect from {GITLAB_IP_ADDRESS}: 2: Too many authentication failures for git
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
更新 2: GitLab には既に解決策があるようです: run sudo gitlab-ctl reconfigure
。ここを参照してください: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#git-ssh-access-stops-working-on-selinux-enabled-systems