Cyberduck Mountain Duck CLI

#2767 closed defect (worksforme)

sftp to dreamhost causes StringIndexOutOfBoundsException on login

Reported by: christian@pekeler.org Owned by: dkocher
Priority: normal Milestone:
Component: sftp Version: 3.0.3
Severity: critical Keywords:
Cc: Architecture:
Platform:

Description (last modified by dkocher)

trying to connect to sftp://myuser@myserver.com:22/ causes this log:

Nov 23 13:34:43 core Cyberduck[2129]:
java/lang/StringIndexOutOfBoundsException: String index out of range:
-544197153\nStack Trace:\njava.lang.StringIndexOutOfBoundsException:
String index out of range: -544197153\n        at
java.lang.String.checkBounds(String.java:368)\n      at
java.lang.String.<init>(String.java:457)\n   at
ch.ethz.ssh2.packets.TypesReader.readString(TypesReader.java:159)\n  at
ch.ethz.ssh2.signature.RSASHA1Verify.decodeSSHRSAPublicKey(RSASHA1Verify.java:27)\n
at ch.ethz.ssh2.KnownHosts.addHostkey(KnownHosts.java:100)\n    at
ch.ethz.ssh2.KnownHosts.initialize(KnownHosts.java:408)\n    at
ch.ethz.ssh2.KnownHosts.initialize(KnownHosts.java:434)\n    at
ch.ethz.ssh2.KnownHosts.<init>(KnownHosts.java:74)\n at
ch.cyberduck.ui.cocoa.CDHostKeyController.<init>(CDHostKeyController.java:59)\n
at
ch.cyberduck.ui.cocoa.CDBrowserController.init(CDBrowserController.java:3704)\n
at
ch.cyberduck.ui.cocoa.CDBrowserController.access$2300(CDBrowserController.java:54)\n
at
ch.cyberduck.ui.cocoa.CDBrowserController$34.run(CDBrowserController.java:3810)\n
at
ch.cyberduck.ui.cocoa.CDBrowserController.unmount(CDBrowserController.java:3926)\n
at
ch.cyberduck.ui.cocoa.CDBrowserController.unmount(CDBrowserController.java:3871)\n
at
ch.cyberduck.ui.cocoa.CDBrowserController.mount(CDBrowserController.java:3806)\n
at
ch.cyberduck.ui.cocoa.CDConnectionController.callback(CDConnectionController.java:479)\n
at
ch.cyberduck.ui.cocoa.CDSheetController.sheetDidClose(CDSheetController.java:182)\n
at
com.apple.cocoa.application.NSApplication.endSheetReturnCodeNative(Native
Method)\n  at
com.apple.cocoa.application.NSApplication.endSheet(NSApplication.java:367)\n
at
ch.cyberduck.ui.cocoa.CDSheetController.closeSheet(CDSheetController.java:85)\n
at com.apple.cocoa.application.NSApplication.sendEvent(Native Method)\n at
ch.cyberduck.ui.cocoa.CDMainApplication.sendEvent(CDMainApplication.java:62)

without any feedback within Cyberduck.

Using sftp from the command line to the same server works without problem.

Change History (3)

comment:1 Changed on Nov 23, 2008 at 10:42:52 PM by dkocher

  • Description modified (diff)

comment:2 Changed on Nov 23, 2008 at 10:43:50 PM by dkocher

  • Description modified (diff)

comment:3 Changed on Nov 24, 2008 at 8:49:17 AM by dkocher

  • Resolution set to worksforme
  • Status changed from new to closed

There is a problem with the format of a RSA key in your known_hosts file in ~/.ssh/known_hosts. Try identifiying the bogus key or remove the known_hosts file.

Note: See TracTickets for help on using tickets.