Windows 输入key/.ssh/id#u rsa'的密码短语;推后

Windows 输入key/.ssh/id#u rsa'的密码短语;推后,windows,git,github,ssh,Windows,Git,Github,Ssh,我在git上花了很多时间,有一次,当我推我的提交时,我不得不:为key/.ssh/id\u rsa'输入密码短语。读了很多关于它的解决方案,但最终还是找不到正确的答案。 有人知道如何修复它以及会发生什么吗?看起来您已经为ssh密钥设置了密码短语: demas@ubuntu:/mnt/coursera$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/ho

我在git上花了很多时间,有一次,当我推我的提交时,我不得不:为key/.ssh/id\u rsa'输入密码短语。读了很多关于它的解决方案,但最终还是找不到正确的答案。
有人知道如何修复它以及会发生什么吗?

看起来您已经为ssh密钥设置了密码短语:

demas@ubuntu:/mnt/coursera$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/demas/.ssh/id_rsa): 
Created directory '/home/demas/.ssh'.
Enter passphrase (empty for no passphrase): 

您要推送到的远程git回购源的url是什么?如果是ssh版本,您是否首先在该服务器上发布了您的公共jey?(例如在GitHub上:)这可能是更好的规范:。是GitHub存储库还是您自己的git服务器?1。您是否将公共ssh密钥部署到远程服务器?2.远程服务器上的用户(可以在“git remote-v”命令的输出中找到)必须具有读取/写入存储库文件夹的权限。3.检查远程服务器上是否存在存储库文件夹(您可以在“git remote-v”命令的输出中找到它)。如果您重新创建了ssh密钥(使用命令ssh keygen),则需要在远程服务器上部署新版本的密钥。@EvaNebko如果您为私钥输入密码,则还需要使用
ssh代理
。瞧。@demas哦,我的脑子坏了!)解决方案-刚刚从本地repo中删除了旧ssh密钥->创建新->添加repo。谢谢你的帮助