Hi, +-From: "Oberhuber, Martin" <[EMAIL PROTECTED]> -- |_Date: Tue, 6 Nov 2007 17:29:26 +0100 ________________________ | |I have an SSH server which seems to support only a single |channel per SSH session. I can connect a first "shell" |channel just fine; but as soon as I try to connect |a second channel (shell or files), the entire session |goes down due to an EOF on the stream. | |Would this be a bug of my SSH server not implementing the |standard correctly?
I think so. According to RFC4254, instead of closing session, it should send back the "SSH_MSG_CHANNEL_OPEN_FAILURE" message on such a case. 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 } } |Or is there any possibility to query the server how |many channels it supports on a single session? I have never heard such a query. 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 JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users