yuhJohn commented on issue #897:
URL: https://github.com/apache/mina-sshd/issues/897#issuecomment-4484217102
I solved this problem by customizing a Command.
```
public class CustomShellCommand implements Command {
...
public void start(ChannelSession channel, Environment env) throws
IOException {
ProcessBuilder pb = new ProcessBuilder("script", "-q", "-c", "/bin/bash
-i -l", "/dev/null");
bashProcess = pb.start();
// other streaming processing
}
...
}
```
--
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]