我一直在搜索网络和stackoverflow,阅读了几篇关于权限被拒绝的求助帖子,但我找不到一个能以我能理解的方式解决我的问题。
我正在按照这些说明进行操作(在Heroku/Cedar上使用Python入门)。一切都很顺利,直到:
drewverlee@ubuntu:~/helloflask$ source venv/bin/activate
(venv)drewverlee@ubuntu:~/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
因为
drewverlee@ubuntu:~$ 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.
作为一个在这方面没有太多经验的人,我不确定如何安全地撤销我所做的事情,因为我知道我正在干涉强大的工具。请问这里有什么建议吗?如果需要更多信息来解决问题,请让我知道。