Hi
 
I understand that the login to the unix m/c is exceeding the grace time defined.. but I want to know the possible reasons it is not  connecting to unix m/c.
I am establishing a JSCH session and while executing the statement session.connect, it hangs and finally results in the following exception:
jcraft.jsch.jschException:SSH_MSG_DISCONNECT:11 Login_grace_time exceeded en
 at com.jcraft.jsch.session.read(Unknown Source)
 at com.jcraft.jsch.UserAuth.start(Unknown Source)
 at com.jcraft.jsch.UserAuthNone.start(Unknown Source)
 at com.jcraft.jsch.session.connect(Unknown Source)
 
This does not happen always.Most of the times, it executes properly.
 
Thanks..
Rohiini
 
 
[email protected] (Atsuhiko Yamanaka) wrote: -----
To: [email protected]
From: [email protected] (Atsuhiko Yamanaka)
Date: 04/20/2010 07:40AM
cc: [email protected]
Subject: Re: [JSch-users] SSH_MSG_DISCONNECT

Hi,

   +-From: Rohiini N <[email protected]> ----
   |_Date: Mon, 19 Apr 2010 21:32:19 +0530 __
   |
   |I am making a SSH connection to a Unix m/c and I am getting a 
   |jschException - SSH_MSG_DISCONNECT - Login grace-time exceeded
   |When it executes session.connect() . 
   |Can anyone please suggest what could be the possible reasons.. 
   |It works fine 3 out of 5 times randomly. only the other times, it fails.

OpenSSH's "man sshd" has following descriptions,

     -g login_grace_time
        Gives the grace time for clients to authenticate themselves (default
        120 seconds).  If the client fails to authenticate the user within
        this many seconds, the server disconnects and exits.  A value of
        zero indicates no limit.


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Skype callto://jcraft/
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to