Create a SFTP connection in Netbeans
I'm trying to create a remote connection with a Apache server in netbeans through a SFTP connection using this tutorial. My intention is upload my files to the server with the IDE.
Following, see the configuration:
When I test my connection with the server, I see the error ProxySOCKS5:java.net.SocketTimeoutException:Read timed out
I found some bugs with related issues, but any of them helped me to understand my problem. Some of them indicates that the problem is in the server.
I'm able to connect with the same server using FileZilla, SSH and many other softwares, so the problem apparently is not in the server and is not typo or wrong password too (this also excludes problems with the proxy).
Someone had the same problem?
Important information:
- Ubuntu 14.04
- JDK 1.8.0_60
- NetBeans IDE 8.0.2 (fresh installation)
- I'm using Cnltm to connect with the enterprise proxy
2 Answers
Netbeans Bug 251641 - Algorithm negotiation fail for any SFTP connectionmay apply to your problem. The solution in Comment 5 says :
Netbeans 7.3 Bets 2 uses JSch library 1.0.45.
This version do not work with OpenSSH 6.7. It works only with OpenSSH 6.6.1 and earlier versions.But JSch library 1.0.52 works with OpenSSH 6.7
- Download this version
- Rename current file to backup
C:\Program Files\NetBeans 7.3 Beta 2\ide\modules\com-jcraft-jsch.jar
rename tocom-jcraft-jsch.jar.1.0.42.bak.- Copy downloaded
com-jcraft-jsch.jarof version 1.0.52 to this folder- Restart Netbeans
Bingo!! SSH works again and works with OpenSSH 6.7 servers
Comment 8 says :
1Thank you! Same problem was in 8.0.2 & OpenSSH 6.7
CommonsHTTPSender does persistent connections.
What's your timeout (not connection timeout) set to ? the default of 60 seconds might be a bit low to create a 1 million row cursor. The 2 timeouts you're fiddling with are connection related, and are not relevant in this case (as you have a connection).
1More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"