Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / April 2004

Tip: Looking for answers? Try searching our database.

using j2ssh connecting via sftp, but get "Corrupt Mac on input".

Thread view: 
Geir - 16 Dec 2003 15:32 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.