我已经在我的Windows 10机器上配置了Jenkins 2.7和git。使用cmd或gitbash,我可以使用ssh键克隆Bitbucket存储库。相同的URL在Jenkins中不起作用。这是错误。
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
我生成了ssh键,并将其复制到.ssh文件夹中的c:\users\myname\.s
我有一个用于root的SSH配置文件: User ansible
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
PermitLocalCommand yes
LocalCommand='/bin/sudo /bin/su -'
IdentityFile /root/.ssh/ansible_onlinux (仅供参考,我已经尝试了‘“没有任何东西,同样的问题)当我ssh到服务器时,我得到了这个错误。 /bin/bash: /bin/sudo: No such file or directory 但是,如
在尝试使用Jenkins编译项目时,我遇到了一些问题。在本地,使用SSH.NET可以很好地工作,但是当我将我的代码放到windows server 2012R2上并使用Jenkins build时。它向我显示了一个错误:
"SSH.NET" has already has a dependency defined for "SshNet.Security.Cryptography".
构建失败。有人知道服务器端发生了什么吗?为什么它在本地工作,但在服务器端有编译错误?
谢谢
我试图在服务器上使用“远程SSH”功能,该服务器必须通过非标准端口连接到服务器上。但是,它不能工作--控制台输出显示了以下内容:
[09:09:17.304] SSH Resolver called for host: foobar.example.com
[09:09:17.304] Setting up SSH remote "foobar.example.com"
[09:09:17.309] Using commit id "da15b6fd3ef856477bf6f4fb29ba1b7af717770d" and quality "stable
我通过ssh设置了对服务器的公钥访问。我的本地windows计算机上有一个.ssh文件夹。我将ssh配置为使用ssh-add <directory>命令添加私钥。我能够使用windowspowershell.成功地连接到我的服务器.ssh目录和授权文件的chmod和Chown在我的服务器上正确配置。正确配置sshd_config并指向正确的键。
这个连接在shell中运行得很好,所以在我的服务器上没有问题。但是使用Eclipse,特别是它的插件Egit,每当我试图将修订提交到服务器上的git存储库时,我都会得到一个Unable to use key file <directo