2013-03-07 56 views
2

在GIT殼鍵入以下命令部署django的應用程式的Heroku:誤差在從窗口

(venv) path_to_project_directory> git push heroku master

提供了以下錯誤:

Warning: Permanently added 'heroku.com,50.19.85.154' (RSA) to the list of known hosts.

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)命令---但遠程似乎正確添加: -

(venv) path_to_project_directory> git remote -v

heroku [email protected]:something.git (fetch)

heroku [email protected]:something.git (push)

origin [email protected]/username/repo_name.git (fetch)

origin [email protected]/username/repo_name.git (push)

我也檢查了t他SSH密鑰在目錄C:\用戶\ abc.ssh \並通過(Heroku的鍵)命令: -

(venv) path_to_project_directory> path_to_heroku\bin\heroku keys

=== [email protected] Keys

ssh-rsa xxxxxxxxx== [email protected]

此SSH密鑰是相同的,我的Heroku的帳戶頁面上出現的一個..

那麼爲什麼當我試圖推動這個錯誤?

+0

http://stackoverflow.com/questions/7974902/deploying-existing-django-app-on-heroku – catherine 2013-03-07 18:11:50

回答

0

你可能是最好的辦法刪除你的密鑰,生成一個新的,並添加它。來自Heroku的說明是here。通常情況下,您希望使用一個密鑰,而不是Heroku的單獨密鑰。

你的過程將是這樣的:

$ heroku keys:remove [email protected] 
$ ssh-keygen -t rsa 
$ heroku keys:add