Hello,

I have a working server with a shell implementation and I want to improve
it with a command. I want to use the command to receive parameters in the
shell:

ssh user@server param1 param2

And in both cases open an interactive shell. I have instructed the 2
factories (Command and Shell) to create instances of the same class.
However I see slightly different behaviours. With the console factory it
looks like the commands I input are echoed.

Reading the documentation, there is a mention that the channel types are
different.
https://github.com/apache/mina-sshd/blob/master/docs/server-setup.md

[...]
CommandFactory - The CommandFactory provides the ability to run a *single*
direct command at a time instead of an interactive session (it also uses a
*different* channel type than shells). It can be used *in addition* to the
ShellFactory.
[...]

Could you please explain the different types?

Many thanks!!

Reply via email to