Mindterm - with SunONE7 error

david timerman davidaway at insurfact.com
Fri Nov 5 15:44:38 MET 2004


I've developed an application using mindterm to be called through my servlet
and connect to my SFTP server. 

 

It keeps getting hung up when I do: 

 

      if (!auth.authenticateUser("ssh-connection")) {

        throw new SSH2FatalException("Permission denied");

      }

 

At this point it freezes and never throws the exception.

 

My log file reports the following warning : 

 

[04/Nov/2004:15:10:36] WARNING (18969):  CORE3283: stderr: ** 15:10:36.476
SSH2Transport.disconnectInternal() : 'disconnect: Unknown kex algorithm:
diffie-hellman-group1-sha1'  

 

I really do not know what to make of this especially since there is not
disconnectInternal() method in the SSH2Transport class.

 

I have included my method:::

 

public boolean openConnect(){

    try{

      transport = createTransport(transport);

      auth = getUserAuth(transport, username, passwd);

      conn = new SSH2Connection(auth, transport);

 

      transport.setUserAuth(auth);

      transport.setConnection(conn);

      transport.boot();

 

      if (!auth.authenticateUser("ssh-connection")) { // freezes here
++++++++++++++

        throw new SSH2FatalException("Permission denied");

      }

      client = new SSH2SFTPClient(conn, true);

    }

    catch(SSH2FatalException e){

       return false;

    }

    catch(SSH2SFTP.SFTPException e){

       return false;

    }

    finally{

      return true;

    }

  }

 

I am not sure how to proceed with this or what I am doing wrong

 

Any help would be appreciated

 

David

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://172.23.2.180/pipermail/mindterm-users/attachments/20041105/1d677289/attachment.htm


More information about the Mindterm-users mailing list