using j2ssh connecting via sftp, but get "Corrupt Mac on input".
When using a regular command line sftp everything works fine. Suspect
it has to do with configuration of ssh-connection, and authentication
mechanism
This is part of the log:
INFO: Creating new blowfish-cbc cipher instance
Dec 16, 2003 4:20:59 PM
com.sshtools.j2ssh.transport.TransportProtocolCommon run
SEVERE: The Transport Protocol thread failed
java.io.IOException: Corrupt Mac on inputat
com.sshtools.j2ssh.transport.TransportProtocolInputStream.readMessage(Unknown
Source)
at com.sshtools.j2ssh.transport.TransportProtocolCommon.processMessages(Unknown
Source)
at com.sshtools.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(Unknown
Source)
at com.sshtools.j2ssh.transport.TransportProtocolCommon.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:534)
com.sshtools.j2ssh.transport.MessageStoreEOFException: The message
store has reached EOF
at com.sshtools.j2ssh.transport.SshMessageStore.getMessage(Unknown
Source)
Navee - 16 Apr 2004 16:29 GMT
I had the same problem trying to run the sftp connect program on an IBM
AS/400 machine on JDK 1.4.2. It turned out the Blowfish cipher algorithm
was generating wild results in line 278 of the
TransportProtocolInputStream class. (cipher.transform(initial)) I examined
my java.security file and tried placing the Bouncy Castle provider above
everything except the SunJCE and that seemed to work just perfectly. The
IBM JCE seemed to be the culprit in this case, consistently returning
extremely large positive/negative values on that line of code. Hope that
helps.