wanena / ganymed-ssh-2

Automatically exported from code.google.com/p/ganymed-ssh-2
Other
0 stars 0 forks source link

Connection.authenticateWithPassword(userid,pwd) method blocked #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
conn = new Connection(Ip);
            boolean result;
            try {
                conn.connect(null,1000,0);
                       result = conn.authenticateWithPassword(userId, password);
                        }catch (IOException e) {

                conn.close();
                return null;
            }

When the program executes the method conn.authenticateWithPassword then 
blocked。

jstack info:
"main" prio=6 tid=0x0067c400 nid=0x1974 in Object.wait() [0x00fff000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x23c00660> (a java.util.Vector)
    at java.lang.Object.wait(Object.java:503)
    at ch.ethz.ssh2.auth.AuthenticationManager.deQueue(AuthenticationManager.java:82)
    - locked <0x23c00660> (a java.util.Vector)
    at ch.ethz.ssh2.auth.AuthenticationManager.getNextMessage(AuthenticationManager.java:99)
    at ch.ethz.ssh2.auth.AuthenticationManager.initialize(AuthenticationManager.java:135)
    at ch.ethz.ssh2.auth.AuthenticationManager.authenticatePassword(AuthenticationManager.java:267)
    at ch.ethz.ssh2.Connection.authenticateWithPassword(Connection.java:309)
    - locked <0x23bf9450> (a ch.ethz.ssh2.Connection)

Original issue reported on code.google.com by patrick....@gmail.com on 7 Feb 2014 at 1:22

Attachments:

GoogleCodeExporter commented 9 years ago
why authenticateWithPassword  hanged up?
How to solve this problem?

Original comment by patrick....@gmail.com on 8 Feb 2014 at 1:03

GoogleCodeExporter commented 9 years ago
The server is not replying to the authentication request.

Start your SSH server in debug mode and check why it is not replying. ("sshd -d 
-p 8888"). Please post the debug output of your ssh server.

Original comment by cleondris on 10 Feb 2014 at 11:27