我试图把我的博客(Octopress)至Github上,并得到这个错误:SSH -T [email protected]权限被拒绝(公钥)
MacBook-Air:octopress bdeely$ git push origin source
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我生成SSH密钥,保存它,甚至在SSH密钥设置我的GitHub的帐户相关联,但我继续检查状态,并得到了同样的错误:
MacBook-Air:.ssh bdeely$ ssh -T [email protected]
Permission denied (publickey).
除了这个,我查github's help page,做了以下和得到这个错误消息:
MacBook-Air:~ bdeely$ ssh-add -l
The agent has no identities.
有谁知道什么是错的,我该如何解决这个问题?
您是否检查.ssh文件夹中的两个文件的权限?他们必须有600个permisions?你如何生成密钥? –