我遇到了这个错误:
$ git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts.
! Your key with fingerprint b7:fd:15:25:02:8e:5f:06:4f:1c:af:f3:f0:c3:c2:65 is not authorized to access bitstarter.
Run Code Online (Sandbox Code Playgroud)
我试图添加密钥,我在下面收到此错误:
$ ssh-add ~/.ssh/id_rsa.pub
Could not open a connection to your authentication agent.
Run Code Online (Sandbox Code Playgroud) 我从我的Github帐户克隆了一个git存储库到我的电脑.
我想使用我的PC和笔记本电脑,但有一个Github帐户.
当我尝试使用我的PC从Github推送或拉出时,它需要用户名和密码,但在使用笔记本电脑时则不需要!
每次与原点交互时,我都不想输入用户名和密码.我在这里缺少什么?
有人看到这个错误,知道该怎么办?
我正在使用终端,我在根目录,GitHub存储库存在,我现在不知道该怎么做.
> git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud) 我使用PuTTY Key Generator生成带密码的4096位RSA-2密钥.
我保存.ppk和openSSL格式的公钥.putty格式的公钥不起作用.
无论如何,我的错误如下:
$ ssh -T git@github.com
key_load_public: invalid format
Enter passphrase for key '/c/Users/Dan/.ssh/id_rsa':
Hi Dan! You've successfully authenticated, but GitHub does not provide shell access.
Run Code Online (Sandbox Code Playgroud)
有什么问题?
我使用Pageant来加载密钥,我使用Git Bash来尝试ssh连接.我还把密钥加载到GitHub中,不知道我做错了什么.
我尝试添加一个新行,而不是在GitHub中添加新行
GitHub为Windows分发了一个简化的git客户端,他们称之为GitHub for Windows; 它通过GitHub帐户进行身份验证,虽然它通常对它创建的本地存储库使用SSL身份验证,但如果您告诉它使用在GitHub上具有SSH远程的现有本地存储库,它将使用您的GitHub凭据在其上设置SSH密钥GitHub为自己负责.但是它将SSH密钥保存在文件系统中的哪个位置?
当我尝试通过PowerShell在Windows 10上启动ssh-agent(右侧或不右侧),输入Start-Service ssh-agent我得到错误
无法启动ssh-agent服务,错误:1058
当我检查服务正在运行时,Get-Service ssh-agent返回该服务已停止.
如何让ssh-agent运行?
我是第一次做git pull并且在git中提示无法建立主机的真实性,与我生成的私钥相比,RSA密钥指纹不正确.我只是想知道如何更新它,以便它读取正确的文件,为什么它首先读取错误的指纹?
我创建了一个新的远程仓库,并试图使用git push -u origin master命令后,我对我的本地文件推到新的存储库中的第一次add它和commit它。然而,它弹出这个git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.。我该如何修复这个致命错误?
我已经尝试过
使用 Git 时如何解决 Permission denied (publickey) 错误?
此链接中的问题似乎发生在第一次使用 git 时。我已经使用我的 git 一段时间了,我还需要遵循这个解决方案吗?谁能给我一个更具体的解决方案?
这是我得到的致命错误
C:\Users\ASUS\Desktop\React-Practice App\my-app>git status
On branch master
nothing to commit, working tree clean
C:\Users\ASUS\Desktop\React-Practice App\my-app>git push -u origin master
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud) 更新
今天再次进入这个 - 当我的工作笔记本电脑被带回家时 - 似乎Window域可能是潜在的问题.在这里找到解决方案:
原始问题
我已经让Git在过去的几个月里工作正常,今天早上我尝试推动并且我被要求确认IP的RSA证书 - 我仔细检查github IP并且没关系,所以我添加了证书.但是我得到了:
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
当我试图推或拉.
我读了Git - 权限被拒绝(publickey)并尝试将我的密钥再次添加到Github,但我被告知:
Key is already in use
Run Code Online (Sandbox Code Playgroud)
运行
ssh -vT git@github.com
Run Code Online (Sandbox Code Playgroud)
Retuns:
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: identity file /p/.ssh/identity type -1
debug1: identity file /p/.ssh/id_rsa type -1
debug1: identity file /p/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version …Run Code Online (Sandbox Code Playgroud) 我是 Git 和 GitHub/GitLab 的新手。我尝试将我的项目共享到 GitHub,但它引发了此异常:
Can't finish GitHub sharing process
Successfully created project 'LiveGame1' on GitHub, but initial push failed:
git@github.com: Permission denied (publickey).
Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
我也可以通过互联网链接克隆存储库,但不能通过“git@github.com:/username/repository_name”。
我该如何修复这个错误,我能否将我的项目直接分享到 GitLab?
github ×6
git ×4
ssh ×4
git-push ×2
git-clone ×1
git-pull ×1
gitlab ×1
openssh ×1
public-key ×1
repository ×1
service ×1
ssh-agent ×1
ssh-keys ×1
windows-10 ×1
windows-7 ×1