如何在没有要求的情况下让SSH客户端不要求密码 [英] How can I make the SSH client not ask for a passphrase when it is not required

查看:128
本文介绍了如何在没有要求的情况下让SSH客户端不要求密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试设置CC.net以从我的私人Git仓库建立。

I'm trying to set up CC.net to build from my private Git repo.

我创建了一个密钥对,其中私钥没有密码,并将公钥上传到服务器。我可以在命令提示符下运行时执行 git clone git @ myserver:myrepo

I have created a key pair, where the private key has no passphrase, and uploaded the public key to the server. I am able to do a git clone git@myserver:myrepo when just running it from the command prompt.

问题是,当我试图克隆回购时,我必须指定密码,即使没有。这意味着我必须按Enter键,这会导致自动化克隆永久挂起(因为没有人这样做)。

The problem is that when I try to clone the repo, I have to specify the passphrase, even though there is none. This means that I have to press enter, and this causes the automated clone to hang forever (since there is noone to do this).

我该如何解决这个问题?

How do I fix this problem?

推荐答案

问题是,在我的.ssh / config文件中,我指定了PuTTY my_id.ppk密钥文件,而不是OpenSSH文件。指定OpenSSH文件而不是它的工作。

The problem was that in my .ssh/config file, I had specified the PuTTY my_id.ppk key file instead of the OpenSSH file. Specifying the OpenSSH file instead made it work.

这篇关于如何在没有要求的情况下让SSH客户端不要求密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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