You are right, no luck for you.
On Mon, Jul 16, 2012 at 9:12 AM, BRESCIANI, MARCO (MARCO) <[email protected]> wrote: > One more question, > is NIO used by MINA, so both SSHD and FtpServer do not work? > > > MARCO BRESCIANI > ALCATEL-LUCENT > SENIOR SW CRAFT TERMINAL DEVELOPMENT ENG > NETWORKS – IP DIVISION > WT PRODUCT UNIT > via Trento, 30 – 20059 Vimercate (MB) – Italy > Phone: +39 039 686 6279 > Fax: +39 039 686 5600 > [email protected] > > >> -----Original Message----- >> From: Sai Pullabhotla [mailto:[email protected]] >> Sent: Friday, July 13, 2012 6:31 PM >> To: [email protected] >> Subject: Re: IPv6 and IPv4 (s)ftp servers >> >> I believe IPv6 support in NIO is added to Java 7 only. So it won't work >> in >> Java 6. >> >> Please feel free to correct me if I'm wrong. >> >> Regards, >> Sai. >> >> On Fri, Jul 13, 2012 at 9:32 AM, BRESCIANI, MARCO (MARCO) < >> [email protected]> wrote: >> >> > Hi all, >> > I'm getting crazy with running SSHD on a Win7 64bit PC, with JVM >> 6u33 >> > 64bit. >> > >> > I'm actually not (yet) sure if it's a problem on my PC (right after >> this >> > email >> > I'll ask colleagues to check on theirs) but this is the situation: >> > >> > I've configured and ran the SSHD and Apache FtpServer on my PC, on >> the >> > usual >> > 22 and 21 ports with no issues. It seems, anyway, that I cannot reach >> those >> > servers through IPv6 networking, not even from my PC itself! >> > I can use [::1] or localhost and they work even by disabling the >> Windows >> > IPv4 stack; anyway, using my whole IPv6 address it does not work. >> > >> > It there something I miss? Here below, a brief copy-paste of >> meaningful >> > code >> > (more or less similar for FtpServer: >> > >> > >> > this.sshServer = SshServer.setUpDefaultServer(); >> > this.sshServer.setPort(SFtp.PORT); >> > this.sshServer.setReuseAddress(true); >> > >> > if (SecurityUtils.isBouncyCastleRegistered()) { >> > this.sshServer.setKeyPairProvider(new >> > PEMGeneratorHostKeyProvider(keyGen, >> > "RSA", 2048)); >> > } else { >> > this.sshServer.setKeyPairProvider(new FileKeyPairProvider(new >> String[] >> > { >> > keyGen })); >> > } >> > >> > this.sshServer.setPasswordAuthenticator(new >> > CustomPasswordAuthenticator(this.username, this.password)); >> > >> > >> > >> this.sshServer.setSubsystemFactories(Collections.<NamedFactory<Command> >> >singletonList(new >> > SftpSubsystem.Factory())); >> > >> > this.sshServer.setFileSystemFactory(new >> > CustomFileSystemFactory(SFtp.USER_HOME)); >> > >> > this.sshServer.start(); >> >
