gpt4 book ai didi

windows - Jenkins Windows Master 连接到 Slave Mac OSX

转载 作者:可可西里 更新时间:2023-11-01 10:07:38 26 4
gpt4 key购买 nike

为了构建各种平台(Blackberry、Android 和 iOS 项目),我在我的 Windows7 PC 和 Mac mini 上都设置了 Jenkins

我遇到的问题是 Win7 Master jenkins 似乎无法连接到 mac slaves。我试过在防火墙上打开端口 22,所以不要认为是这个(虽然不是 100% 确定)并阅读它所有教程都提到了设置 SSH 公钥,但它们都指的是 mac 和 linux 而不是而不是 Win7,因为根据我的理解,这似乎不是一种有效的方法。

有没有人做过这个和/或得到任何关于为什么 Win7 似乎看不到 mac 的指示? (如果这有助于确保它们在同一网络上,我可以 ping 它)

如果有任何用处,这里是控制台输出。

    [10/04/12 23:10:35] [SSH] Opening SSH connection to 192.168.0.102:22.
java.io.IOException: There was a problem while connecting to 192.168.0.102:22
at com.trilead.ssh2.Connection.connect(Connection.java:793)
at com.trilead.ssh2.Connection.connect(Connection.java:565)
at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:650)
at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:283)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.trilead.ssh2.transport.TransportManager.establishConnection(TransportManager.java:346)
at com.trilead.ssh2.transport.TransportManager.initialize(TransportManager.java:454)
at com.trilead.ssh2.Connection.connect(Connection.java:733)
... 9 more
[10/04/12 23:10:56] [SSH] Connection closed.

最佳答案

在您的 MAC 中配置 SSH:

$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/<user>/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/<user>/.ssh/id_rsa.
Your public key has been saved in /home/<user>/.ssh/id_rsa.pub.

在给定 ssh 私钥(从路径)的位置的情况下,在 Jenkins 从配置中配置 SSH。

我的 Blog 中有更多详细信息

关于windows - Jenkins Windows Master 连接到 Slave Mac OSX,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12737021/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com