title: PhpStrom7 SFTP Connection failed
body: <p>I have some troubles with deployment project configuration in PhpStorm7.0 (I have the same problem in IDE WebStrom)</p>
  <p>When I trying to connect through <strong>ftp</strong> - everything fine.</p>
  <p>But if choice <strong>sftp</strong> - I have this error:</p>
  <blockquote>
  <p>Test SFTP Connection</p>
  <p>Connection to 'echuvelev.ihc.ru'</p>
  <p>Java.lang.ArrayIndexOutOfBoundsException</p>
  </blockquote>
  <p>Logs:</p>
  <pre><code>    2014-08-19 14:06:29,038 [  73753]   WARN - loyment.ui.WebServerConfigForm - Could not connect to SFTP server at &quot;sftp://echuvelev.ihc.ru/&quot;. 
  org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at &quot;sftp://echuvelev.ihc.ru/&quot;.
      at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:108)
      at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:102)
      at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:80)
      at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:64)
      at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:698)
      at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:624)
      at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:139)
      at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:103)
      at com.jetbrains.plugins.webDeployment.PublishUtils$1$1.run(PublishUtils.java:115)
      at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:420)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      at java.lang.Thread.run(Thread.java:695)
      at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:150)
  Caused by: org.apache.commons.vfs2.FileSystemException: Error during processing known-hosts file &quot;/Users/echuvelev/.ssh/known_hosts&quot;.
      at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:126)
      at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:97)
      ... 16 more
  Caused by: com.jcraft.jsch.JSchException: java.lang.ArrayIndexOutOfBoundsException: 403
      at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:235)
      at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:60)
      at com.jcraft.jsch.JSch.setKnownHosts(JSch.java:299)
      at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:122)
      ... 17 more
  Caused by: java.lang.ArrayIndexOutOfBoundsException: 403
      at com.jcraft.jsch.Util.fromBase64(Util.java:53)
      at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:221)
      ... 20 more
  </code></pre>
  <p>I tried reinstall all IDE (with removing cache, setting in Library dir), but it doesn't help me.</p>
  <p>Any ideas?</p>
  <p>p.s ssh work fine with this server in console, i have this problem only in IDE, and only with sftp protocol.</p>