I opened a bug on this issue: https://sourceforge.net/p/jsch/bugs/68/
On 11/29/2013 02:12 PM, Gerry Reno wrote: > Can someone provided me with a few pointers on getting ipv6 addresses working > with JSch? > > I'm starting off with link-local address (fe80::) > > The target machine has this ipv6 address: fe80::218:f8ff:fe0b:554b%eth0 > > So I've tried to connect using both: fe80::218:f8ff:fe0b:554b and > fe80::218:f8ff:fe0b:554b%eth0 (with and without > the scope id / inf) > > What I end up with is the following errors: > > ERROR: com.jcraft.jsch.JSchException java.net.ConnectException: failed to > connect to /fe80::218:f8ff:fe0b:554b (port > 22): connect failed: EINVAL (Invalid argument) > > ERROR: com.jcraft.jsch.JSchException java.net.UnknownHostException: > Unable to resolve host > "fe80::218:f8ff:fe0b:554b%eth0": No address associated with hostname > > I am able to ping6 the address%inf: > > $ ping6 fe80::218:f8ff:fe0b:554b%eth0 > PING fe80::218:f8ff:fe0b:554b%eth0(fe80::218:f8ff:fe0b:554b) 56 data bytes > 64 bytes from fe80::218:f8ff:fe0b:554b: icmp_seq=1 ttl=64 time=0.380 ms > 64 bytes from fe80::218:f8ff:fe0b:554b: icmp_seq=2 ttl=64 time=0.233 ms > 64 bytes from fe80::218:f8ff:fe0b:554b: icmp_seq=3 ttl=64 time=0.284 ms > > I am also able to login using openssh from the command line: > > $ ssh xxxxxxxx@fe80::218:f8ff:fe0b:554b%eth0 > Last login: Fri Nov 29 14:00:42 2013 from fe80::a2e:5fff:fe74:9e8d%eth0 > $ > > But I have not been able to figure a way to get JSch to connect successfully > using ipv6. > > > > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users