NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 553 - Uploading to update-site does not work with SSH-key authentication
Uploading to update-site does not work with SSH-key authentication
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Other
unspecified
PC Linux
: P5 enhancement
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2013-01-22 17:29 CST by Stefan Helfrich
Modified: 2013-01-25 22:34 CST
2 users (show)

See Also:

Description Stefan Helfrich 2013-01-22 17:29:53 CST
When trying to initialize or upload to an update-site via SSH, entering the correct pass phrase three times raises an error and aborts the process.

com.jcraft.jsch.JSchException: Auth cancel
	at com.jcraft.jsch.Session.connect(Session.java:451)
	at com.jcraft.jsch.Session.connect(Session.java:150)
	at imagej.updater.ssh.SSHSessionCreator.connect(SSHSessionCreator.java:91)
	at imagej.updater.ssh.SSHSessionCreator.getSession(SSHSessionCreator.java:232)
	at imagej.updater.ssh.SSHFileUploader.login(SSHFileUploader.java:83)
	at imagej.updater.core.FilesUploader.login(FilesUploader.java:339)
	at imagej.updater.gui.UpdaterFrame.upload(UpdaterFrame.java:828)
	at imagej.updater.gui.UpdaterFrame$7$1.run(UpdaterFrame.java:343)


I have kept the settings exactly the same and have removed the pass phrase from the key. Therefore, I am not asked for the phrase anymore and the connection can be established and the upload can be completed.

Ubuntu 12.04 (64bit)
Comment 1 Johannes Schindelin 2013-01-22 18:41:47 CST
It does not ask for the pass phrase for the key, but instead for the password.

Pass-phrase-protected keys are unsupported for now, patches welcome! (See https://github.com/imagej/imagej/blob/master/core/updater/ssh/src/main/java/imagej/updater/ssh/SSHSessionCreator.java#L82 for details)
Comment 2 Stefan Helfrich 2013-01-25 10:55:42 CST
I have proposed a fork on the imagej github project. This seems to have been a problem with JSch 0.1.42. Using 0.1.49 fixes the problem, however I haven't tested compatibility with older Java versions. Looking at the change-log I couldn't find any information about this.
Comment 3 Johannes Schindelin 2013-01-25 22:34:24 CST
Thank you! I just merged and pushed this. It will be part of the next beta version of ImageJ2!