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

   ### Version
   
   2.16.0
   
   ### Bug description
   
   Using a ChannelShell to manage the connection, anything written out to an 
SSH server (`ChannelShell.getInvertedIn()`) gets echoed back on the input 
stream (`ChannelShell.getInvertedOut()`).  Connecting to the exact same servers 
with a jsch SSH implementation does not have any output echo, so its definitely 
not a server configuration problem.  
   
   ### Actual behavior
   
   I've tried disabling all echo flags in the PtyMode:
   ```
   HashMap<PtyMode, Integer> ptyModes = new HashMap<>();
   ptyModes.put(PtyMode.ECHO, 0);
   ptyModes.put(PtyMode.ECHOE, 0);
   ptyModes.put(PtyMode.ECHOK, 0);
   ptyModes.put(PtyMode.ECHONL, 0);
   channel.setPtyModes(ptyModes);
   ```
   Also tried disabling agent forwarding via 
`ChannelShell.setAgentForwarding(false)` (even though this function has no 
javadoc and I have no idea what it might actually do).
   
   At this point I can only surmise there's something else going on that needs 
to be examined to prevent output echo.
   
   ### Expected behavior
   
   Setting echo flags to 0 should disable output echo, or some other setting 
needs to be made available to generally stop output from being echoed back on 
the input stream.
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to