The protocol version is not supported! help

Help
Jayr Motta
2009-06-30
2013-05-20
  • Jayr Motta

    Jayr Motta - 2009-06-30

    Hi,

    Im developing an application to connect in a plataform and execute some commands, but this plataform isnt a common computer. She is like and router who communicates ssh.

    When i try to connect using J2SSH lib's i got this message: 

    com.sshtools.j2ssh.transport.TransportProtocolException: The protocol version of the remote computer is not supported!

    And i know that, but i take the risk of connect and execute commands on her. There is a way to do it? Ignore this problem of version...

    Jayr Motta

     
    • Pat

      Pat - 2009-06-30

      What version is it? A log would be helpful showing the full stack trace.

       
    • Jayr Motta

      Jayr Motta - 2009-06-30

      I only can offer the return off comand "ssh -v <hostname>" executed by my computer, because im not resposable for this plataform and the company that is, probably cant provide this to me.

      I'm doing these test's in production, there is no ambient of test's

      Here is the result of "ssh -v <hostname>":

      OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009
      debug1: Reading configuration data /etc/ssh/ssh_config
      debug1: Applying options for *
      debug1: Connecting to 200.170.136.213 [200.170.136.213] port 22.
      debug1: Connection established.
      debug1: identity file /media/disk/jayrmotta/.ssh/identity type -1
      debug1: identity file /media/disk/jayrmotta/.ssh/id_rsa type -1
      debug1: identity file /media/disk/jayrmotta/.ssh/id_dsa type -1
      <b>debug1: Remote protocol version 1.5, remote software version HUAWEI-VRP3.1
      debug1: no match: HUAWEI-VRP3.1</b>
      debug1: Local version string SSH-1.5-OpenSSH_5.2
      debug1: Waiting for server public key.
      debug1: Received server public key (768 bits) and host key (1024 bits).
      debug1: Host '200.170.136.213' is known and matches the RSA1 host key.
      debug1: Found key in /media/disk/jayrmotta/.ssh/known_hosts:9
      debug1: Encryption type: 3des
      debug1: Sent encrypted session key.
      debug1: Installing crc compensation attack detector.
      debug1: Received encrypted confirmation.
      debug1: RSA authentication using agent refused.
      debug1: Doing password authentication.
      jayrmotta@200.170.136.213's password:

      In another research i've discovered that what cause this exception is this line:
      debug1: Remote protocol version 1.5, remote software version HUAWEI-VRP3.1
      debug1: no match: HUAWEI-VRP3.1

      But what i cant understand is why i can connect trought the terminal, and cant trought the code. It has to be a way for ignore this version or something like that!

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks