aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Convoluted IPv6 SFTP problem seeking simple solution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Convoluted IPv6 SFTP problem seeking simple solution" Watch "Convoluted IPv6 SFTP problem seeking simple solution" New topic
Author

Convoluted IPv6 SFTP problem seeking simple solution

Paul Policarp
Greenhorn

Joined: May 07, 2010
Posts: 18
Grab a chair, this might take a while...

Alright, so. My requirement for my company's project was SFTP support for an application. It needed to support both a Server and a Client. After a lot of hassle with (the buggy and unfinished) SSHTools I finally convinced my managers that we needed to purchase a commercial solution. The chosen product was Maverick, SSHTools' commercial successor. It all worked fine and dandy until we needed to support IPv6 (which Maverick claimed it supported "as long as the JRE supported it") and the JRE allegedly does support it.

HOWEVER.

NIO channels do NOT support IPv6 server sockets on Windows (which is our required platform) and this is a long-standing bug in Java. It's doubtful that the people developing Maverick will agree to help us with a workaround and thus we're looking for an alternate solution.

Java 1.7 fixes this, but there is no official release and we can't wait for it. I don't know if a workaround can be done on our side, so my main question is if anyone has any recommendations for a free or paid SFTP API for Java. Keeping in mind all of the above.

Thanks.

~Paul
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

Do you need functionality particular to NIO or can you get by with java.io?


[How To Ask Questions On JavaRanch]
Paul Policarp
Greenhorn

Joined: May 07, 2010
Posts: 18
NIO is not required, it's just the implementation that the commercial API has chosen.

I could use pretty much anything that supports a working SFTP server that can be integrated into existing code. So APIs would do (no GPL, though). The problem is that I've had my share of problems with both paid and free solutions so I would really like some recommendations.
Paul Policarp
Greenhorn

Joined: May 07, 2010
Posts: 18
So I tried Apache MINA SSHD and everything, once again, worked like a charm until I tried binding an IPv6 address. It's the same problem. I'm beginning to think that there aren't any implementations out there that don't use NIO. Does anyone have any other helpful recommendations aside from J2SSH, Maverick or Apache MINA? Also non-GPL...
Try It
Greenhorn

Joined: Feb 27, 2012
Posts: 1
Paul Policarp wrote:So I tried Apache MINA SSHD and everything, once again, worked like a charm until I tried binding an IPv6 address. It's the same problem. I'm beginning to think that there aren't any implementations out there that don't use NIO. Does anyone have any other helpful recommendations aside from J2SSH, Maverick or Apache MINA? Also non-GPL...
Can you call an external binary exectuable to do the file transfer? If so how about Putty. It comes with a BSD style licence allowing commercial use and works well on Windows. See http://www.chiark.greenend.org.uk/~sgtatham/putty/ or http://unfix.org/projects/ipv6/ Oops just saw you need a server as well. Putty doesn't do that. Nice client though ;)
 
Consider Paul's rocket mass heater.
 
subject: Convoluted IPv6 SFTP problem seeking simple solution