Re: [JSch-users] session goes down after the first shell command
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2007-06-20 00:31:55
|
Hi, +-From: "karim aklouche" <kar...@gm...> -- |_Date: Wed, 20 Jun 2007 02:16:05 +0200 ______________ | |This is not actually a question about jsch but quite a big issue for me. |I use a single ssh connection in order to execute multiple command on |remote hosts. |So far so good. However, it turns out on 2 solaris servers that the session |is marked as closed on the client side (the one using jsch) before I can |send the second command. |I use the same code for some other servers and there is no issue like this. |Does anyone have faced this issue before. Note that the sshd_config has not |been changed. |How to simulate multiple command on the client side using standard unix |base ssh (solaris or open ssh) multiple commands in order to reproduce |this and try to troubleshoot? We had heard the similar problem from our customer. You know that Sun's SSH is from the OpenSSH and some Solaris has included older OpenSSH version, which has a bug. In this bug, if there is no any channel, sshd will drop the session. So, to work around this bug, I will recommend to establish "shell" channel at first and then runs mexec" channels sequentially without closing the first "shell" channel. Of course, the best solution must be to update Sun's SSH version. 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/ |