This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252276 - SFTP connection failed with OpenSSH server 6.7
Summary: SFTP connection failed with OpenSSH server 6.7
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-07 03:59 UTC by dbpalan
Modified: 2015-08-27 09:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dbpalan 2015-05-07 03:59:05 UTC
SFTP connection failed with OpenSSH server 6.7 or above found from Debian 8 / Ubuntu 15.04.

This is suspected due to lack of supported encryption algorithm compiled in the IDE module com-jcraft-jsch.jar

More information can be found from: https://sourceforge.net/p/jsch/bugs/79/

Error message:

java.lang.ClassNotFoundException: javax.crypto.spec.SecretKeySpec cannot be found by com.jcraft.jsch_0.1.51
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at org.netbeans.modules.netbinox.NetbinoxLoader.loadClass(NetbinoxLoader.java:81)
	at java.lang.ClassLoader.loadClass(Unknown Source)
Caused: java.lang.NoClassDefFoundError: javax/crypto/spec/SecretKeySpec
	at com.jcraft.jsch.jce.AES128CTR.init(AES128CTR.java:56)
	at com.jcraft.jsch.Session.checkCipher(Session.java:2473)
	at com.jcraft.jsch.Session.checkCiphers(Session.java:2450)
	at com.jcraft.jsch.Session.send_kexinit(Session.java:616)
	at com.jcraft.jsch.Session.connect(Session.java:307)
	at com.jcraft.jsch.Session.connect(Session.java:183)
	at org.netbeans.modules.php.project.connections.sftp.SftpClient.connectSftpClient(SftpClient.java:277)
	at org.netbeans.modules.php.project.connections.sftp.SftpClient.init(SftpClient.java:159)
	at org.netbeans.modules.php.project.connections.sftp.SftpClient.connect(SftpClient.java:285)
	at org.netbeans.modules.php.project.connections.RemoteClient.connect(RemoteClient.java:193)
	at org.netbeans.modules.php.project.connections.ui.RemoteConnectionsPanel.testConnection(RemoteConnectionsPanel.java:252)
	at org.netbeans.modules.php.project.connections.ui.RemoteConnectionsPanel$2.run(RemoteConnectionsPanel.java:153)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 1 dbpalan 2015-05-07 05:34:15 UTC
This is an update of the bug:

System upgraded from 8.0 -> 8.0.2 will suffer from this bug since ide\modules\com-jcraft-jsch.jar would not be upgraded, the file size is 224,310 bytes.

System newly install 8.0.2 will NOT suffer from this bug, file size of the jar file is 226666 bytes.
Comment 2 LadyCailin 2015-05-15 20:17:41 UTC
I am suffering from this same bug.
Comment 3 Tomas Mysik 2015-05-29 09:28:51 UTC
So, if I understand it correctly, we need to wait for new version of JSCh (the JSCh issue is still opened) - am I right? Feel free to let us know once it is released.

Thanks.
Comment 4 miraged 2015-06-06 07:09:23 UTC
I installed netbeans 8.0.2 separately, but ide\modules\com-jcraft-jsch.jar  the file size is 224,310 bytes i.e. it is the same as 8.0, where to get file 
226666 bytes size?
Comment 5 miraged 2015-06-06 09:02:31 UTC
Update: you have to export all settings and keyrink passwords (if you need) and do clean uninstall of upgraded version, then do clean install of netbeans 8.0.2 and import previously exported settings
Comment 6 Tomas Mysik 2015-08-24 06:31:46 UTC
Could anyone please confirm that this issue is resolved with the latest Jsch (0.1.53)?

Thanks.
Comment 7 Tomas Mysik 2015-08-27 09:24:20 UTC
JSch upgraded to the latest stable version [1], so closing this issue. Feel free to reopen but please provide information what can be done on NetBeans' side.

Thanks.
[1] see issue #254634