Serega2780 opened a new issue, #745:
URL: https://github.com/apache/mina-sshd/issues/745

   ### Version
   
   2.15.0 and less
   
   ### Bug description
   
   When I send a **show** command to a network device, I expect to get a whole 
configuration in a response as it is done with putty client, or ssh on Ubuntu. 
But instead I receive a shorter version of the device configuration. Moreover, 
the response each time is of different length. And the ssh channel states are 
successful, like OPEN EXIT CLOSE - so no error is detected during command 
execution. It looks like a response is written to OutputStream in a different 
thread while CLOSE status comes in another thread, and when it comes, the 
OutputStream thread just stops writing - that's why the response length is 
different each time.
   I send the exactly same command (**show**) with ssh clientd, based on 
https://github.com/mwiede/jsch/ and https://github.com/hierynomus/sshj/ 
libraries. And both results return the whole device config.
   
   ### Actual behavior
   
   Actually I'm getting a partial device config. Moreover the length of output 
is always differ.
   
   ### Expected behavior
   
   When using a basic ssh client code, shown here 
https://github.com/atthorst/sshd-mina-example/blob/master/src/main/java/thorst/ssh_example/SshUtils.java,
 with String cmd = "show\nr\", I expect to get a whole device config output.
   
   ### Relevant log output
   
   ```Shell
   
   ```
   
   ### Other information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to