Could not open channel: Jenkins connecting to Windows slave via Kpym SSHD

553 views
Skip to first unread message

Joshua Boyd

unread,
Jan 16, 2013, 1:43:44 PM1/16/13
to jenkins...@googlegroups.com
I have installed a registered version of Kpym SSH server for Windows on
Windows XP running on KVM, and I want to use this as a slave for
building Windows software and running Selenium tests.

I can interactively ssh into the Windows XP machine from my linux
machine and launch programs and run commands, but when Jenkins tries to
connect, I get this error:

[01/16/13 13:34:49] [SSH] Opening SSH connection to 10.10.59.249:22.

[01/16/13 13:34:51] [SSH] Authenticating as admin/******.
[01/16/13 13:34:51] [SSH] Authentication successful.
[01/16/13 13:34:51] [SSH] The remote users environment is:
java.io.IOException: Could not open channel (The connection is being shutdown)
at com.trilead.ssh2.channel.ChannelManager.waitUntilChannelOpen(ChannelManager.java:127)
at com.trilead.ssh2.channel.ChannelManager.openSessionChannel(ChannelManager.java:584)
at com.trilead.ssh2.Session.<init>(Session.java:40)
at com.trilead.ssh2.Connection.openSession(Connection.java:1104)
at com.trilead.ssh2.Connection.exec(Connection.java:1516)
at hudson.plugins.sshslaves.SSHLauncher.reportEnvironment(SSHLauncher.java:581)
at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:286)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
[01/16/13 13:34:51] [SSH] Connection closed.

[01/16/13 13:35:08] [SSH] Opening SSH connection to 10.10.59.249:22.


repeated endlessly.

Has anyone else tried this setup?

Ken Egozi

unread,
Mar 13, 2013, 5:39:24 PM3/13/13
to jenkins...@googlegroups.com
Seeing the same issue now (agent is running win8, with kpyM ssh)
ssh connections succeed from regular ssh clients.

Did you find a solution already?

Joshua Boyd

unread,
Mar 27, 2013, 4:09:41 PM3/27/13
to jenkins...@googlegroups.com
On 3/13/2013 5:39 PM, Ken Egozi wrote:
> Seeing the same issue now (agent is running win8, with kpyM ssh)
> ssh connections succeed from regular ssh clients.
>
> Did you find a solution already?
>

No. kpyM ssh looked very promising. The source code was nicely
approachable. Despite that, I got no help and don't have time to figure
out why Jenkins SSH client can't connect but OpenSSH's client doesn't
have trouble (or how to use OpenSSH's client to replicate the issue, or
really anyway to create an appropriate reproducer to submit to the kpym
author).
Reply all
Reply to author
Forward
0 new messages