将铁轨部署到英雄 - 未经授权的公钥访问 [英] deploying rails to heroku - unauthorized public key access

查看:130
本文介绍了将铁轨部署到英雄 - 未经授权的公钥访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图将我的应用程序部署到英雄,但是每当我推着掌握时,它都会给我这个错误:

So I'm trying to deploy my app to heroku but it keeps giving me this error whenever I push to master:

!你的钥匙与指纹cb:e1:5c:31:cd:6b:78:6e:30:ff:eb:11:e2:4b:2e:b3没有权限访问平滑山-8970。 $ c>

! Your key with fingerprint cb:e1:5c:31:cd:6b:78:6e:30:ff:eb:11:e2:4b:2e:b3 is not authorized to access smooth-mountain-8970.

我尝试从生成新的ssh键删除所有内容并替换文件。我甚至创建了一个不同的用户名,并尝试上传,但它不断给我这个错误,认为我想要上传到平滑山,其实我的应用程序名称不是平滑山。你们知道问题是什么吗?

I tried everything from generating new ssh keys to deleting everything and replacing the files. I even created a different username and tried uploading, but it keep giving me this error thinking that I want to upload to smooth-mountain when in fact, my app name is NOT smooth-mountain. Do you guys know what the problem might be?

谢谢。

推荐答案

ssh-agent (一个程序,公钥认证)自Mac OS X Leopard自动运行。要解决您的问题,您必须通过发出以下命令从代理中删除身份。

ssh-agent (a program that holds private keys used for public key authentication) runs automatically since Mac OS X Leopard. To resolve your problem you must remove identities from the agent by issuing the following command.

ssh-add -d

示例:

> ssh-add -l 
1024 a3:d5:21:2d:50:ee:3e:af:1b:44:62:60:1d:e4:51:21 /Users/bart/.ssh/id_dsa (DSA)

> ssh-add -d 
Identity removed: /Users/bart/.ssh/id_dsa (/Users/bart/.ssh/id_dsa.pub)

> ssh-add -l 
The agent has no identities.

这将暂时从此会话中删除密钥。就个人而言,我不介意这样做一会儿。但是,如果要永久禁用ssh-agent,请参阅: SSH密钥禁用缓存

This will only remove the keys from this session temporarily. Personally, I don't mind doing this once in a while. However, if you would like disable ssh-agent permanently, see: SSH Key Disable Caching

这篇关于将铁轨部署到英雄 - 未经授权的公钥访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆