Menu

Negotiating protocol version

Help
2008-11-20
2013-04-29
  • Hector Garcia

    Hector Garcia - 2008-11-20

    Hello
    im trying to connect to Filezilla server or Cerberus FTP Server with j2ssh library and this is the error:
    [INFO] TransportProtocolCommon - Negotiating protocol version
    [FATAL] TransportProtocolCommon - The remote computer does not support protocol version 2.0
    [ERROR] TransportProtocolCommon - The Transport Protocol thread failed <com.sshtools.j2ssh.transport.TransportProtocolException: The protocol version of the remote computer is not supported!>com.sshtools.j2ssh.transport.TransportProtocolException: The protocol version of the remote computer is not supported!
            at com.sshtools.j2ssh.transport.TransportProtocolCommon.negotiateVersion(Unknown Source)
            at com.sshtools.j2ssh.transport.TransportProtocolCommon.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:479)

    My sample code to connect server:

    SshClient objSshClient = new SshClient();
                   
    objSshClient.connect(PsServer, PniPuerto);
               
    PasswordAuthenticationClient objPasswordAuthenticationClient = new PasswordAuthenticationClient();
    objPasswordAuthenticationClient.setUsername(PsUsuario);

    Somebody knows what happened??

     
    • Hector Garcia

      Hector Garcia - 2008-11-20

      The server log shows me this message

      (000007) 20/11/2008 11:51:45 - (not logged in) (213.190.6.138)> Connected, sending welcome message...
      (000007) 20/11/2008 11:51:45 - (not logged in) (213.190.6.138)> 220 Hello
      (000007) 20/11/2008 11:51:45 - (not logged in) (213.190.6.138)> SSH-2.0-http://www.sshtools.com J2SSH [CLIENT]
      (000007) 20/11/2008 11:51:45 - (not logged in) (213.190.6.138)> 500 Syntax error, command unrecognized.

       

Log in to post a comment.