title: Apache Mina SSHD 1.0 Server exits immediately
body: <p>I am using Apache Mina sshd-core-1.0.0 to start an SFTP daemon. The program however exits after the <code>sshd.start()</code>. There are no errors. However if I use sshd-core-0.0.14, the server starts just fine and I can initiate an SFTP session. Am I missing something with 1.0.0?</p>
  
  <p>Code snippet with 1.0.0 (does not work)</p>
  
  <pre><code>public static void main(String[] args) throws IOException {
      SshServer sshd = SshServer.setUpDefaultServer();
      sshd.setPort(2222);
      sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File ("hostkey.ser")))   
      sshd.setPasswordAuthenticator(new AuthenticatorImpl());
      sshd.start();
  }
  </code></pre>
  
  <p>Code snippet with 0.0.14 (works)</p>
  
  <pre><code>public static void main(String[] args) throws IOException {
      SshServer sshd = SshServer.setUpDefaultServer();
      sshd.setPort(2222);
      sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider("hostkey.ser")); 
      sshd.setPasswordAuthenticator(new AuthenticatorImpl());
      sshd.start();
  }
  </code></pre>
  
  <p>The following is output when 1.0.0 runs. The code starts fine but terminates after the <code>sshd.start()</code> statement.</p>
  
  <pre class="lang-none prettyprint-override"><code>2015-12-16 19:57:38,510 DEBUG SFTPServer.main(SFTPServer.java:26) message
  2015-12-16 19:57:38,767 INFO org.apache.sshd.common.util.SecurityUtils$BouncyCastleRegistration.call(SecurityUtils.java:145) Trying to register BouncyCastle as a JCE provider
  2015-12-16 19:57:39,076 INFO org.apache.sshd.common.util.SecurityUtils$BouncyCastleRegistration.call(SecurityUtils.java:149) Registration succeeded
  2015-12-16 19:57:39,105 DEBUG org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:57) Binding Nio2Acceptor to address 0.0.0.0/0.0.0.0:2222
  2015-12-16 19:57:39,114 INFO SFTPServer.main(SFTPServer.java:32) Started
  </code></pre>