title: jenkins node ssh-connection fails
body: <p>I try to connect a VM(Windows 10) as a node in jenkins with ssh. 
  But after some lines occurs the following error:</p>
  
  <pre><code>[10/11/18 11:45:10] [SSH] Starting agent process: cd "C:\jenkins" &amp;&amp; java  -jar remoting.jar -workDir C:\jenkins
  &lt;===[JENKINS REMOTING CAPACITY]===&gt;Okt 11, 2018 11:45:11 AM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
  INFORMATION: Using C:\jenkins\remoting as a remoting work directory
  Both error and output logs will be printed to C:\jenkins\remoting
  &lt;===[JENKINS REMOTING CAPACITY]===&gt;ERROR: Connection terminated
  java.io.EOFException
      at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
      at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
      at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
      at java.io.ObjectInputStream.&lt;init&gt;(Unknown Source)
      at hudson.remoting.ObjectInputStreamEx.&lt;init&gt;(ObjectInputStreamEx.java:49)
      at hudson.remoting.Command.readFrom(Command.java:140)
      at hudson.remoting.Command.readFrom(Command.java:126)
      at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:36)
      at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)
  Caused: java.io.IOException: Unexpected termination of the channel
      at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:77)
  Slave JVM has not reported exit code. Is it still running?
  [10/11/18 11:45:17] Launch failed - cleaning up connection
  [10/11/18 11:45:17] [SSH] Connection closed.
  </code></pre>