私はリセラーホスティングアカウント(inmotion hosting)にgithookをセットアップしようとしています。私がしようとして許可が拒否されました(publickey)。致命的:リモートリポジトリから読み取れませんでした。リセラーホスティング
git push production master
を実行している間、私はエラー
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
を取得していますgit remote -v
origin https://github.com/{username}/{projectname}.git (fetch)
origin https://github.com/{username}/{projectname}.git (push)
production ssh://{hostingusername}@{domain-name}:{port}/repo/site.git (fetch)
production ssh://{hostingusername}@{domain-name}:{port}/repo/site.git (push)
を実行git.Whenにセットアップgit init --bare
とgitのためのフォルダとpost-receive
ファイルを構成して、コメントを追加リモートのSSHを持っています
公開鍵をサーバーにアップロードしましたか?パスワードを使用して認証すると、サーバーで有効になっていますか? – fNek
公開鍵をgitからホスティングサーバーにアップロードしますか? –
公開鍵( '〜/ .ssh/id_rsa.pub')をGitHubアカウント(プロダクションリポジトリ)に追加しましたか? –