DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=39373>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39373 ------- Additional Comments From [EMAIL PROTECTED] 2006-04-24 22:55 ------- (In reply to comment #9) > (In reply to comment #8) > > (In reply to comment #7) > > > The version of F-Secure sshd we are using supports only ssh2 protocol. > > It is interesting. > > May I ask you to show me the fist line of outputs from > > $ telnet address_of_sshd 22 > SSH-2.0-3.2.9 F-SECURE SSH 3.2.3 It appears that the ascii codes for the server version string returned by F- Secure is lower case. The following patch to Session.java will address the issue. --- Session.java.orig 2006-04-18 22:37:02.000000000 -0700 +++ Session.java 2006-04-24 15:42:58.594132100 -0700 @@ -224,11 +224,13 @@ } } - if(i==buf.buffer.length || + if((i==buf.buffer.length || (i>4 && (buf.buffer[0]!='S'||buf.buffer[1]!='S'|| buf.buffer[2]!='H'||buf.buffer[3]!='-'))|| i<7 || // SSH-1.99 or SSH-2.0 - (buf.buffer[4]=='1' && buf.buffer[6]!='9') // SSH-1.5 + (buf.buffer[4]=='1' && buf.buffer[6]!='9')) ^ // SSH-1.5 + (buf.buffer[0]!='s'||buf.buffer[1]!='s'|| + buf.buffer[2]!='h'||buf.buffer[3]!='-') // "ssh-" F-Secure returns lowercase ){ throw new JSchException("invalid server's version string"); } The task is still not working however. Now I get the following error... com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: invalid data This exception is thrown during the Session.read(buf) method. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]