Hi
Can you pl tell me how do I enable the debug logging on JSch. And whats the difference between the files /etc/ssh/ssh_config and /etc/ssh/ssh_server_confi.xml?   
 
Thanks..

____________________________________________
-----Keith Alan Richardson wrote: -----
To: Rohiini N <[email protected]>
From: Keith Alan Richardson <[email protected]>
Date: 04/20/2010 11:48PM
cc: [email protected], [email protected]
Subject: Re: [JSch-users] SSH_MSG_DISCONNECT

There are a lot of possibilities why this could be happening occasionally:

1.  Network congestion
2.  You SSH daemon has a very low timeout (default is 120 seconds in OpenSSH)
3.  Very high load (cpu/memory/network) on the client and/or server

Some general suggestions follow.

Check you SSH daemon configuration to find out what it's login grace time is.  It may be in a configuration file or being set via a command-line argument. 

Enable debug logging on JSch.  This will give you a better idea of what is happening, how long it is taking between establishing initial connection and receiving the SSH_MSG_DISCONNECT.

-Keith

On Tue, Apr 20, 2010 at 7:00 PM, Rohiini N < [email protected] > wrote:
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


=====-----=====-----=====
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



------------------------------------------------------------------------------
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to