2017-02-22 18 views
0

私はリセラーホスティングアカウント(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を持っています

+0

公開鍵をサーバーにアップロードしましたか?パスワードを使用して認証すると、サーバーで有効になっていますか? – fNek

+0

公開鍵をgitからホスティングサーバーにアップロードしますか? –

+0

公開鍵( '〜/ .ssh/id_rsa.pub')をGitHubアカウント(プロダクションリポジトリ)に追加しましたか? –

答えて

1

共有ホスティングを使用している場合は、ディレクトリパスを確認してください。私はそれを疑っている。私も同じ種類のトラブルの帰り道を持っていました。

+0

ありがとうございます。私は自分のディレクトリパスで間違いを犯しました。 'home/{username}/repo/site、git'にする必要があります –

関連する問題