我在我的Windows7 PC和Mac mini上安装了Jenkins,以构建各种平台(Blackberry,Android和iOS项目)
问题我鼓励的是Win7 Master jenkins似乎无法连接到mac奴隶。我已经尝试在防火墙上打开端口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.
答案 0 :(得分:2)
在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
中的更多详细信息答案 1 :(得分:1)
SSH方法要求在您尝试连接的目标上运行SSH服务器。
也许您的Mac没有运行和/或配置SSH服务器。