Menu

TransportProtocolException:IO Error on socket

Help
TigerXX
2007-07-04
2013-05-20
  • TigerXX

    TigerXX - 2007-07-04

    Hi am using IgnoreHostKeyVerification()

    is
    sshClient.connect(hostName,new IgnoreHostKeyVerification());

    but while trying to connect am getting the following exception
    Any idea why this is occuring?.

    04-Jul-2007 12:42:50 com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory <clinit>
    INFO: Loading public key algorithms
    04-Jul-2007 12:42:50 com.sshtools.j2ssh.transport.compression.SshCompressionFactory <clinit>
    INFO: Loading compression methods
    04-Jul-2007 12:42:50 com.sshtools.j2ssh.transport.hmac.SshHmacFactory <clinit>
    INFO: Loading message authentication methods
    04-Jul-2007 12:42:50 com.sshtools.j2ssh.transport.TransportProtocolCommon startTransportProtocol
    INFO: Starting transport protocol
    04-Jul-2007 12:42:50 com.sshtools.j2ssh.transport.TransportProtocolCommon run
    INFO: Registering transport protocol messages with inputstream
    04-Jul-2007 12:42:50 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
    INFO: Negotiating protocol version
    04-Jul-2007 12:42:50 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
    INFO: Protocol negotiation complete
    04-Jul-2007 12:42:50 com.sshtools.j2ssh.transport.TransportProtocolCommon beginKeyExchange
    INFO: Starting key exchange
    04-Jul-2007 12:42:50 com.sshtools.j2ssh.transport.kex.DhGroup1Sha1 performClientExchange
    INFO: Starting client side key exchange.
    04-Jul-2007 12:42:51 com.sshtools.j2ssh.transport.TransportProtocolClient verifyHostKey
    INFO: The host key signature is invalid
    04-Jul-2007 12:42:51 com.sshtools.j2ssh.transport.TransportProtocolCommon run
    SEVERE: The Transport Protocol thread failed
    com.sshtools.j2ssh.transport.TransportProtocolException: IO Error on socket: Socket closed
            at com.sshtools.j2ssh.transport.TransportProtocolOutputStream.sendMessage(Unknown Source)
            at com.sshtools.j2ssh.transport.TransportProtocolCommon.sendMessage(Unknown Source)
            at com.sshtools.j2ssh.transport.TransportProtocolCommon.sendNewKeys(Unknown Source)
            at com.sshtools.j2ssh.transport.TransportProtocolCommon.beginKeyExchange(Unknown Source)
            at com.sshtools.j2ssh.transport.TransportProtocolCommon.onMsgKexInit(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)

    Many thanks in advance

    Aneesh

     
    • TigerXX

      TigerXX - 2007-07-05

      Any body please help me yaar...

      This is very critical...

      I have used IgnoreHostKeyVerification then i shudln't get this exception.
      i dont know how to proceed.

      please help me..

      Regards
      Aneesh

       
      • Sascha Hunold

        Sascha Hunold - 2007-07-05

        Look, if that's so critical to you then have a look in the code. That's why it's open source.
        The IgnoreHostKeyVerification works as expected. The host key was accepted but the signature of the key is wrong.
        And, if you want to change that then go ahead and change verifyHostKey in TransportProtocolClient.

         
    • TigerXX

      TigerXX - 2007-07-05

      i went through the code..
      But :-( am unable to undes=rstand why this is happening?

      Please find the detailed log below.
      am using the IgnoreHostVerification but receiving this error.

      Somebody please help me..
      am struggling hard..
      :-)

      05-Jul-2007 10:16:38 com.sshtools.j2ssh.transport.cipher.SshCipherFactory <clinit>
      INFO: Loading supported cipher algorithms
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.transport.kex.SshKeyExchangeFactory <clinit>
      INFO: Loading key exchange methods
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
      INFO: JAVA version is 1.4.2_05
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
      INFO: Extension /usr/j2se/jre/lib/ext/dnsns.jar being added to classpath
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.util.ExtensionClassLoader add
      INFO: Adding /usr/j2se/jre/lib/ext/dnsns.jar to the extension classpath
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
      INFO: Extension /usr/j2se/jre/lib/ext/ldapsec.jar being added to classpath
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.util.ExtensionClassLoader add
      INFO: Adding /usr/j2se/jre/lib/ext/ldapsec.jar to the extension classpath
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
      INFO: Extension /usr/j2se/jre/lib/ext/localedata.jar being added to classpath
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.util.ExtensionClassLoader add
      INFO: Adding /usr/j2se/jre/lib/ext/localedata.jar to the extension classpath
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
      INFO: Extension /usr/j2se/jre/lib/ext/sunjce_provider.jar being added to classpath
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.util.ExtensionClassLoader add
      INFO: Adding /usr/j2se/jre/lib/ext/sunjce_provider.jar to the extension classpath
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
      INFO: Extension /usr/j2se/jre/lib/ext/jhall.jar being added to classpath
      05-Jul-2007 10:16:39 com.sshtools.j2ssh.util.ExtensionClassLoader add
      INFO: Adding /usr/j2se/jre/lib/ext/jhall.jar to the extension classpath
      05-Jul-2007 10:16:40 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
      INFO: Extension /usr/j2se/jre/lib/ext/iiimf.jar being added to classpath
      05-Jul-2007 10:16:40 com.sshtools.j2ssh.util.ExtensionClassLoader add
      INFO: Adding /usr/j2se/jre/lib/ext/iiimf.jar to the extension classpath
      05-Jul-2007 10:16:40 com.sshtools.j2ssh.transport.kex.SshKeyExchangeFactory <clinit>
      FINE: The default key exchange is not set! using first in list
      05-Jul-2007 10:16:40 com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory <clinit>
      INFO: Loading public key algorithms
      05-Jul-2007 10:16:40 com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory <clinit>
      FINE: The default public key is not set! using first in list
      05-Jul-2007 10:16:40 com.sshtools.j2ssh.transport.compression.SshCompressionFactory <clinit>
      INFO: Loading compression methods
      05-Jul-2007 10:16:40 com.sshtools.j2ssh.transport.hmac.SshHmacFactory <clinit>
      INFO: Loading message authentication methods
      05-Jul-2007 10:16:40 com.sshtools.j2ssh.transport.TransportProtocolCommon startTransportProtocol
      INFO: Starting transport protocol
      05-Jul-2007 10:16:40 com.sshtools.j2ssh.transport.TransportProtocolCommon run
      INFO: Registering transport protocol messages with inputstream
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
      INFO: Negotiating protocol version
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
      FINE: Local identification: SSH-2.0-http://www.sshtools.com J2SSH [CLIENT]
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
      FINE: EOL is guessed at LF
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
      FINE: Remote identification: SSH-2.0-Sun_SSH_1.0.1
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
      INFO: Protocol negotiation complete
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolClient setLocalKexInit
      FINE: SshMsgKexInit:
      Supported Kex [diffie-hellman-group1-sha1]
      Supported Public Keys [ssh-dss, ssh-rsa]
      Supported Encryption Client->Server [blowfish-cbc, 3des-cbc]
      Supported Encryption Server->Client [blowfish-cbc, 3des-cbc]
      Supported Mac Client->Server [hmac-sha1, hmac-md5-96, hmac-md5, hmac-sha1-96]
      Supported Mac Server->Client [hmac-sha1, hmac-md5-96, hmac-md5, hmac-sha1-96]
      Supported Compression Client->Server [none]
      Supported Compression Server->Client [none]
      Supported Languages Client->Server []
      Supported Languages Server->Client []
      First Kex Packet Follows [FALSE]
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon sendMessage
      INFO: Sending SSH_MSG_KEX_INIT
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon startBinaryPacketProtocol
      FINE: Received SSH_MSG_KEX_INIT
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon onMsgKexInit
      FINE: Received remote key exchange init message
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon onMsgKexInit
      FINE: SshMsgKexInit:
      Supported Kex [diffie-hellman-group1-sha1]
      Supported Public Keys [ssh-rsa, ssh-dss]
      Supported Encryption Client->Server [aes128-cbc, blowfish-cbc, 3des-cbc]
      Supported Encryption Server->Client [aes128-cbc, blowfish-cbc, 3des-cbc]
      Supported Mac Client->Server [hmac-sha1, hmac-md5]
      Supported Mac Server->Client [hmac-sha1, hmac-md5]
      Supported Compression Client->Server [none, zlib]
      Supported Compression Server->Client [none, zlib]
      Supported Languages Client->Server [geo, lcttab, iso_8859_1, iso_8859_15, en_GB, en_GB.ISO8859-1, en_GB.ISO8859-15, en_GB.ISO8859-15@euro, en_IE, en_IE.ISO8859-1, en_IE.ISO8859-15, en_IE.ISO8859-15@euro, fr, fr.ISO8859-15, fr.UTF-8, fr_BE, fr_BE.ISO8859-1, fr_BE.ISO8859-15, fr_BE.ISO8859-15@euro, fr
      _BE.UTF-8, fr_BE.UTF-8@euro, fr_FR, fr_FR.ISO8859-1, fr_FR.ISO8859-15, fr_FR.ISO8859-15@euro, fr_FR.UTF-8, fr_FR.UTF-8@euro, nl, nl.ISO8859-15, nl_BE, nl_BE.ISO8859-1, nl_BE.ISO8859-15, nl_BE.ISO8859-15@euro, nl_BE.UTF-8, nl_NL, nl_NL.ISO8859-1, nl_NL.ISO8859-15, nl_NL.ISO8859-15@euro, nl_NL.UTF-8]
      Supported Languages Server->Client [geo, lcttab, iso_8859_1, iso_8859_15, en_GB, en_GB.ISO8859-1, en_GB.ISO8859-15, en_GB.ISO8859-15@euro, en_IE, en_IE.ISO8859-1, en_IE.ISO8859-15, en_IE.ISO8859-15@euro, fr, fr.ISO8859-15, fr.UTF-8, fr_BE, fr_BE.ISO8859-1, fr_BE.ISO8859-15, fr_BE.ISO8859-15@euro, fr
      _BE.UTF-8, fr_BE.UTF-8@euro, fr_FR, fr_FR.ISO8859-1, fr_FR.ISO8859-15, fr_FR.ISO8859-15@euro, fr_FR.UTF-8, fr_FR.UTF-8@euro, nl, nl.ISO8859-15, nl_BE, nl_BE.ISO8859-1, nl_BE.ISO8859-15, nl_BE.ISO8859-15@euro, nl_BE.UTF-8, nl_NL, nl_NL.ISO8859-1, nl_NL.ISO8859-15, nl_NL.ISO8859-15@euro, nl_NL.UTF-8]
      First Kex Packet Follows [FALSE]
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon beginKeyExchange
      INFO: Starting key exchange
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
      FINE: Determine Algorithm
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
      FINE: Client Algorithms: [diffie-hellman-group1-sha1]
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
      FINE: Server Algorithms: [diffie-hellman-group1-sha1]
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
      FINE: Returning diffie-hellman-group1-sha1
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.TransportProtocolCommon beginKeyExchange
      FINE: Key exchange algorithm: diffie-hellman-group1-sha1
      05-Jul-2007 10:16:42 com.sshtools.j2ssh.transport.kex.DhGroup1Sha1 performClientExchange
      INFO: Starting client side key exchange.
      05-Jul-2007 10:16:43 com.sshtools.j2ssh.transport.TransportProtocolCommon sendMessage
      INFO: Sending SSH_MSG_KEXDH_INIT
      05-Jul-2007 10:16:43 com.sshtools.j2ssh.transport.TransportProtocolCommon readMessage
      FINE: Processing SSH_MSG_KEXDH_REPLY
      05-Jul-2007 10:16:43 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
      FINE: Determine Algorithm
      05-Jul-2007 10:16:43 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
      FINE: Client Algorithms: [ssh-dss, ssh-rsa]
      05-Jul-2007 10:16:43 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
      FINE: Server Algorithms: [ssh-rsa, ssh-dss]
      05-Jul-2007 10:16:43 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
      FINE: Returning ssh-dss
      05-Jul-2007 10:16:43 com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey verifySignature
      FINE: Header is ssh-dss
      05-Jul-2007 10:16:43 com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey verifySignature
      FINE: Verifying host key signature
      05-Jul-2007 10:16:43 com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey verifySignature
      FINE: Signature length is 40
      05-Jul-2007 10:16:43 com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey verifySignature
      FINE: SSH: 60 40 1b e4 6e 99 8c 51 1b 5b 4e d0 77 ee c7 e0 3f 16 11 fd 99 c8 35 4f d5 84 86 44 dd b8 44 f1 51 28 9 eb 7 40 6 a2
      05-Jul-2007 10:16:43 com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey verifySignature
      FINE: Encoded: 30 2d 2 14 60 40 1b e4 6e 99 8c 51 1b 5b 4e d0 77 ee c7 e0 3f 16 11 fd 2 15 0 99 c8 35 4f d5 84 86 44 dd b8 44 f1 51 28 9 eb 7 40 6 a2
      05-Jul-2007 10:16:44 com.sshtools.j2ssh.transport.TransportProtocolClient verifyHostKey
      INFO: The host key signature is invalid
      05-Jul-2007 10:16:44 com.sshtools.j2ssh.transport.TransportProtocolCommon sendMessage
      INFO: Sending SSH_MSG_DISCONNECT
      05-Jul-2007 10:16:44 com.sshtools.j2ssh.transport.TransportProtocolCommon sendMessage
      INFO: Sending SSH_MSG_NEWKEYS
      05-Jul-2007 10:16:44 com.sshtools.j2ssh.transport.TransportProtocolCommon run
      SEVERE: The Transport Protocol thread failed
      com.sshtools.j2ssh.transport.TransportProtocolException: IO Error on socket: Socket closed
              at com.sshtools.j2ssh.transport.TransportProtocolOutputStream.sendMessage(Unknown Source)
              at com.sshtools.j2ssh.transport.TransportProtocolCommon.sendMessage(Unknown Source)
              at com.sshtools.j2ssh.transport.TransportProtocolCommon.sendNewKeys(Unknown Source)
              at com.sshtools.j2ssh.transport.TransportProtocolCommon.beginKeyExchange(Unknown Source)
              at com.sshtools.j2ssh.transport.TransportProtocolCommon.onMsgKexInit(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)
      05-Jul-2007 10:16:44 com.sshtools.j2ssh.transport.TransportProtocolCommon run
      FINE: The Transport Protocol has been stopped

       
      • Sascha Hunold

        Sascha Hunold - 2007-07-05

        So, I make this clear once more.
        You are using IgnoreHostVerification. Fine. And this works as expected.
        It has a method called verifyHost which returns true. The error is caused by the verifySignature method.
        I am not sure if that test makes any sense in case of IgnoreHostVerification. Nonetheless, the test is in the code.
        Hence, 2 options. Either you pass a valid signature or you modify the j2ssh code accordingly.

         
        • TigerXX

          TigerXX - 2007-07-05

          ya thatz what am doing now..

          i dig through the code to chekc why the signature is failing.
          But no idea..as i dont know the SSH protocol basics.
          :-)

          i amended the verifyHostKey() in TransportProtocolClient such that
          when the verifySignature() returns false, i will retrun true from verifyHostKey().
          Let me build it, test it and will get back.

          Cheers
          Aneesh

           
          • TigerXX

            TigerXX - 2007-07-05

            i have builded and executed the same.
            u can see the following log where i have amended the verifyHostKey()
            so that if itz false then changin explicitly to true;

            INFO: The obtained result is========>false
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolClient verifyHostKey
            INFO: Changed the result to========>true

            But now am getting the following exception
            java.io.IOException: Corrupt Mac on input
            afer Sending SSH_MSG_SERVICE_REQUEST

            Please advise how to proceed?...

            Full log is attached:

            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon startTransportProtocol
            INFO: Starting transport protocol
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon run
            INFO: Registering transport protocol messages with inputstream
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
            INFO: Negotiating protocol version
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
            FINE: Local identification: SSH-2.0-http://www.sshtools.com J2SSH [CLIENT]
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
            FINE: EOL is guessed at LF
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
            FINE: Remote identification: SSH-2.0-Sun_SSH_1.0.1
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
            INFO: Protocol negotiation complete
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolClient setLocalKexInit
            FINE: SshMsgKexInit:
            Supported Kex [diffie-hellman-group1-sha1]
            Supported Public Keys [ssh-dss, ssh-rsa]
            Supported Encryption Client->Server [blowfish-cbc, 3des-cbc]
            Supported Encryption Server->Client [blowfish-cbc, 3des-cbc]
            Supported Mac Client->Server [hmac-sha1, hmac-md5-96, hmac-md5, hmac-sha1-96]
            Supported Mac Server->Client [hmac-sha1, hmac-md5-96, hmac-md5, hmac-sha1-96]
            Supported Compression Client->Server [none]
            Supported Compression Server->Client [none]
            Supported Languages Client->Server []
            Supported Languages Server->Client []
            First Kex Packet Follows [FALSE]
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon sendMessage
            INFO: Sending SSH_MSG_KEX_INIT
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon startBinaryPacketProtocol
            FINE: Received SSH_MSG_KEX_INIT
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon onMsgKexInit
            FINE: Received remote key exchange init message
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon onMsgKexInit
            FINE: SshMsgKexInit:
            Supported Kex [diffie-hellman-group1-sha1]
            Supported Public Keys [ssh-rsa, ssh-dss]
            Supported Encryption Client->Server [aes128-cbc, blowfish-cbc, 3des-cbc]
            Supported Encryption Server->Client [aes128-cbc, blowfish-cbc, 3des-cbc]
            Supported Mac Client->Server [hmac-sha1, hmac-md5]
            Supported Mac Server->Client [hmac-sha1, hmac-md5]
            Supported Compression Client->Server [none, zlib]
            Supported Compression Server->Client [none, zlib]
            Supported Languages Client->Server [geo, lcttab, iso_8859_1, iso_8859_15, en_GB, en_GB.ISO8859-1, en_GB.ISO8859-15, en_GB.ISO8859-15@euro, en_IE, en_IE.ISO8859-1, en_IE.ISO8859-15, en_IE.ISO8859-15@euro, fr, fr.ISO8859-15, fr.UTF-8, fr_BE, fr_BE.ISO8859-1, fr_BE.ISO8859-15, fr_BE.ISO88
            _BE.UTF-8, fr_BE.UTF-8@euro, fr_FR, fr_FR.ISO8859-1, fr_FR.ISO8859-15, fr_FR.ISO8859-15@euro, fr_FR.UTF-8, fr_FR.UTF-8@euro, nl, nl.ISO8859-15, nl_BE, nl_BE.ISO8859-1, nl_BE.ISO8859-15, nl_BE.ISO8859-15@euro, nl_BE.UTF-8, nl_NL, nl_NL.ISO8859-1, nl_NL.ISO8859-15, nl_NL.ISO8859-15@euro,
            Supported Languages Server->Client [geo, lcttab, iso_8859_1, iso_8859_15, en_GB, en_GB.ISO8859-1, en_GB.ISO8859-15, en_GB.ISO8859-15@euro, en_IE, en_IE.ISO8859-1, en_IE.ISO8859-15, en_IE.ISO8859-15@euro, fr, fr.ISO8859-15, fr.UTF-8, fr_BE, fr_BE.ISO8859-1, fr_BE.ISO8859-15, fr_BE.ISO88
            _BE.UTF-8, fr_BE.UTF-8@euro, fr_FR, fr_FR.ISO8859-1, fr_FR.ISO8859-15, fr_FR.ISO8859-15@euro, fr_FR.UTF-8, fr_FR.UTF-8@euro, nl, nl.ISO8859-15, nl_BE, nl_BE.ISO8859-1, nl_BE.ISO8859-15, nl_BE.ISO8859-15@euro, nl_BE.UTF-8, nl_NL, nl_NL.ISO8859-1, nl_NL.ISO8859-15, nl_NL.ISO8859-15@euro,
            First Kex Packet Follows [FALSE]
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon beginKeyExchange
            INFO: Starting key exchange
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Determine Algorithm
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Client Algorithms: [diffie-hellman-group1-sha1]
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Server Algorithms: [diffie-hellman-group1-sha1]
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Returning diffie-hellman-group1-sha1
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon beginKeyExchange
            FINE: Key exchange algorithm: diffie-hellman-group1-sha1
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.kex.DhGroup1Sha1 performClientExchange
            INFO: Starting client side key exchange.
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon sendMessage
            INFO: Sending SSH_MSG_KEXDH_INIT
            05-Jul-2007 11:46:25 com.sshtools.j2ssh.transport.TransportProtocolCommon readMessage
            FINE: Processing SSH_MSG_KEXDH_REPLY
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Determine Algorithm
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Client Algorithms: [ssh-dss, ssh-rsa]
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Server Algorithms: [ssh-rsa, ssh-dss]
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Returning ssh-dss
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.AbstractKnownHostsKeyVerification verifyHost
            INFO: Verifying idhdev001,10.64.226.52 host key
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.AbstractKnownHostsKeyVerification verifyHost
            FINE: Fingerprint: 1024: 13 97 d3 b9 c6 1c 31 57 eb fa f9 ee 7a 13 3b 1b
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey verifySignature
            FINE: Header is ssh-dss
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey verifySignature
            FINE: Verifying host key signature
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey verifySignature
            FINE: Signature length is 40
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey verifySignature
            FINE: SSH: 63 90 bc c4 9b 5f 95 d4 12 9d 36 6d 2c fa 86 a2 f5 90 18 a2 57 5f 6b 92 1f 44 69 9b 26 e3 de 66 30 9f cb 77 6e 7 e6 52
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.publickey.dsa.SshDssPublicKey verifySignature
            FINE: Encoded: 30 2c 2 14 63 90 bc c4 9b 5f 95 d4 12 9d 36 6d 2c fa 86 a2 f5 90 18 a2 2 14 57 5f 6b 92 1f 44 69 9b 26 e3 de 66 30 9f cb 77 6e 7 e6 52
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolClient verifyHostKey
            INFO: The obtained result is========>false
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolClient verifyHostKey
            INFO: Changed the result to========>true
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolClient verifyHostKey
            INFO: The host key signature is  valid
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon sendMessage
            INFO: Sending SSH_MSG_NEWKEYS
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon sendNewKeys
            FINE: Received SSH_MSG_NEWKEYS
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon completeKeyExchange
            INFO: Completing key exchange
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon completeKeyExchange
            FINE: Making keys from key exchange output
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon completeKeyExchange
            FINE: Creating algorithm objects
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Determine Algorithm
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Client Algorithms: [blowfish-cbc, 3des-cbc]
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Server Algorithms: [aes128-cbc, blowfish-cbc, 3des-cbc]
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Returning blowfish-cbc
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.cipher.SshCipherFactory newInstance
            INFO: Creating new blowfish-cbc cipher instance
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Determine Algorithm
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Client Algorithms: [blowfish-cbc, 3des-cbc]
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Server Algorithms: [aes128-cbc, blowfish-cbc, 3des-cbc]
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Returning blowfish-cbc
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.cipher.SshCipherFactory newInstance
            INFO: Creating new blowfish-cbc cipher instance
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Determine Algorithm
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Client Algorithms: [hmac-sha1, hmac-md5-96, hmac-md5, hmac-sha1-96]
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Server Algorithms: [hmac-sha1, hmac-md5]
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Returning hmac-sha1
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Determine Algorithm
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Client Algorithms: [hmac-sha1, hmac-md5-96, hmac-md5, hmac-sha1-96]
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Server Algorithms: [hmac-sha1, hmac-md5]
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon determineAlgorithm
            FINE: Returning hmac-sha1
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon completeKeyExchange
            FINE: Sending queued messages
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon sendMessage
            INFO: Sending SSH_MSG_SERVICE_REQUEST
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon run
            SEVERE: The Transport Protocol thread failed
            java.io.IOException: Corrupt Mac on input
                    at 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)

            IOException occured
            com.sshtools.j2ssh.transport.MessageStoreEOFException: The message store has reached EOF
                    at com.sshtools.j2ssh.transport.SshMessageStore.getMessage(Unknown Source)
                    at com.sshtools.j2ssh.transport.SshMessageStore.getMessage(Unknown Source)
                    at com.sshtools.j2ssh.transport.SshMessageStore.getMessage(Unknown Source)
                    at com.sshtools.j2ssh.transport.TransportProtocolClient.requestService(Unknown Source)
                    at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
                    at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
                    at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
                    at SSHTest.testConsoleHostKeyVerificationConnection(SSHTest.java:151)
                    at SSHTest.<init>(SSHTest.java:47)
                    at SSHTest.main(SSHTest.java:218)
            05-Jul-2007 11:46:26 com.sshtools.j2ssh.transport.TransportProtocolCommon run
            FINE: The Transport Protocol has been stopped

            Regards
            Aneesh

             
    • TigerXX

      TigerXX - 2007-07-05

      Dear Hunold

      can u please help me to dig this out...
      any idea why this exception is happening..

      i have seen a lot of posts in this forum similar to this
      one and nobody has even replied to that.

      Does that mean that we have an open issue with J2SSH.?

      Why am i asking this bcz i have made a study on different SSH libraries(open source) available and i choosed J2SSH bcz of itz pluggable architecure and a very glorious historical past.(started on 2003).Now i have pressure from my heads to switch to some other libraries as we are finding it difficult to proceed.But to say truly am not @ all interested in choosing another library.i want to procced with this and come up with a good solution.

      Am very much satisified with this API but these kind of exceptions
      are very difficult to debug and the fact is nobody is able to pinpoint the root cause or atleast a try on how to approach the prob.

      Any urgent help is much appreciated..

      Thanks and Regards
      Aneesh

       

Log in to post a comment.

MongoDB Logo MongoDB