我一直在掃描網絡/ SO,並閱讀了多個權限被拒絕請求幫助我只是無法找到一個以我理解的方式解決我的問題。.ssh/id_rsa失敗:權限被拒絕
我遵循這些說明(Getting Started with Python on Heroku/Cedar)。一切都沒事,直到:
[email protected]:~/helloflask$ source venv/bin/activate
(venv)[email protected]:~/helloflask$ git push heroku master
The authenticity of host 'heroku.com (50.19.85.132)' can't be established.
RSA key fingerprint is ##:##:##:##:##:##:##:##:##:##:##:## (I replaced with #)
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/drewverlee/.ssh/known_hosts).
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
(不知道安全的,所以我換成(#)鍵)
我想可能是因爲
drwx------ 2 root root 1024 2012-03-08 21:26 .ssh
因爲
[email protected]:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/drewverlee/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
open /home/drewverlee/.ssh/id_rsa failed: Permission denied.
Saving the key failed: /home/drewverlee/.ssh/id_rsa.
作爲一個在這些問題上經驗不多的人,我不確定如何撤銷我已經安全完成的任務我正在干涉強大的工具。有關這裏發生了什麼的任何建議? 讓我知道是否需要包含更多信息來解決問題。
@CIRCLE對我來說看起來不是一個好主意 – Phoenix87 2017-07-22 11:48:57