Hi,
+-From: "Oberhuber, Martin" <[EMAIL PROTECTED]> --
|_Date: Wed, 7 Nov 2007 17:26:13 +0100 ________________________
|
>> You know that OpenSSH's sshd allows to open 10 "shell" and "exec"
>> channels simultaneously, and on such a case it will send back that
>> message with SSH_OPEN_ADMINISTRATIVELY_PROHIBITED(1).
>>
>> try{
>> channel.connect();
>> }
>> catch(JSchException e){
>> if(channel.getExitStatus()==1){
>> // SSH_OPEN_ADMINISTRATIVELY_PROHIBITED
>> }
>> }
|That code does not work with Jsch-0.1.36 against an
|OpenSSH_3.9p1 server. The exception is not being thrown.
You are right.
I can not find the reason why the following code has not been
included in 0.1.36 and previous,
--- jsch-0.1.36/src/com/jcraft/jsch/Channel.java 2007-10-13
00:21:01.000000000 +0000
+++ jsch-0.1.37/src/com/jcraft/jsch/Channel.java 2007-11-08
01:37:10.000000000 +0000
@@ -185,6 +185,11 @@
if(retry==0){
throw new JSchException("channel is not opened.");
}
+
+ if(this.isClosed()){
+ throw new JSchException("channel is not opened.");
+ }
+
connected=true;
start();
}
|The developer of our own SSH Server said: "The issue is
|to some extent caused by the Eclipse Jsch client sending
|a channel request for which it does not request a response.
|Therefore IPSSH does not notify the ssh client of the failed
|request. (RFC 4253 states "It is RECOMMENDED that the reply
|to these messages be requested and checked")."
|What do you think is going wrong here?
I guess your developer has been talking about
SSH_MSG_CHANNEL_REQUEST
, but I had been talking about the response to
SSH_MSG_CHANNEL_OPEN
.
Will your sshd drop the session in processing
"SSH_MSG_CHANNEL_REQUEST" request from the ssh2 client?
FYI, if Channel#connect(long timeout) method is used,
a reply for 'SSH_MSG_CHANNEL_REQUEST' will be asked.
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
Fax +81-22-224-8773
Skype callto://jcraft/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users