Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sftp to dreamhost causes StringIndexOutOfBoundsException on login #2767

Closed
cyberduck opened this issue Nov 23, 2008 · 1 comment
Closed

sftp to dreamhost causes StringIndexOutOfBoundsException on login #2767

cyberduck opened this issue Nov 23, 2008 · 1 comment
Assignees
Labels
bug sftp SFTP Protocol Implementation worksforme

Comments

@cyberduck
Copy link
Collaborator

d6abc54 created the issue

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.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

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.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug sftp SFTP Protocol Implementation worksforme
Projects
None yet
Development

No branches or pull requests

2 participants