简体   繁体   English

Windows 8 Git Bash-命令推送-腻子缓存

[英]Windows 8 Git Bash - Command Push - Putty cache

I have installed Git on Windows 8. The SSH key is uploaded to bitbucket. 我已经在Windows 8上安装了Git。SSH密钥已上传到bitbucket。

Git works well (git status, git commit, etc.) Git运作良好(git状态,git commit等)

When I do a pull, git tells me: 当我拉时,git告诉我:

$ Git push origin --all -u

The server's host key is not cached in the registry. 服务器的主机密钥未缓存在注册表中。 You have no guarantee That the server is the computer you think it is. 您不能保证服务器就是您认为的计算机。 The server's rsa2 key fingerprint is: ssh-rsa 2048 97: 8c: 1b: f2: 6f: 14: 6b: 5c: 3b: ec: aa: 46: 46: 74: 7c: 40 If you Trust this host, enter "and" to add the key to PuTTY's cache and carry on connecting. 服务器的rsa2密钥指纹为:ssh-rsa 2048 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40如果您信任此主机,请输入“和“将密钥添加到PuTTY的缓存中并进行连接。 If you want to carry on connecting just once, without adding the key to the cache, enter "n". 如果您只想进行一次连接而不将密钥添加到缓存中,请输入“ n”。 If you do not Trust this host, press Return to abandon the connection. 如果您不信任此主机,请按Return键以放弃连接。 Store key in cache? 将密钥存储在缓存中? (Y / n) (是/否)

By saying yes, he stays is frozen. 一言以蔽之,他留下来就被冻结了。

I have done the same from SourceTree and passes exactametne same, with the same error message. 我已经从SourceTree中完成了相同的操作,并通过相同的错误消息传递了完全相同的信息。

In parallel I reviewed Pageant (PuTTY Authentication Agent), and I added the corresponding key (I tested SSH-1 (RSA) and SSH-2 RSA) 同时,我查看了Pageant(PuTTY身份验证代理),并添加了相应的密钥(我测试了SSH-1(RSA)和SSH-2 RSA)

In both cases I still have the same problem ... do not let me push. 在这两种情况下,我仍然有相同的问题...不要让我推。 Forever in the same place trying to cache the remote server. 永远在同一位置尝试缓存远程服务器。

Try connecting to SSH separately first. 请先尝试分别连接到SSH。

With OpenSSH, this would be: 使用OpenSSH,这将是:

ssh git@bitbucket.org

With PuTTY, you need to use Plink instead: 使用PuTTY,您需要改用Plink

plink.exe git@bitbucket.org

This should give you the fingerprint prompt separately outside of Git, so hopefully it works then. 这应该在Git之外单独为您提供指纹提示,因此希望它可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM