Re: commands filter

2019-04-10 Thread bruce
lgoldstein, Thank You! -- Sent from: http://apache-mina.10907.n7.nabble.com/Apache-MINA-Developer-Forum-f6809.html

Re: commands filter

2019-04-10 Thread Lyor Goldstein
>> how to treat the arrow keys or any other more effective method could audit the commands Arrow keys are quite tricky to handle and I cannot offer a tried-and-tested approach to it. Basically, you need to handle several issues: * Detect arrow keys - very tricky since they are usually a

Re: commands filter

2019-04-09 Thread bruce
lgoldstein Thank you for your soonest reply. I sure the Shell Channel is I needed.I think the dangerous command embed in the script is accectble in my case. The method your recommanded Intercept the STDIN was I considered, my implement is as follow: I implements the class

Re: commands filter

2019-04-08 Thread Lyor Goldstein
>> is it possibleto filter remote commands, i.e. I want to reject to execute some dangerous commands like "rm" Seems relatively straightforward - since you are a proxy, then I assume you present your "server" face to the potential clients whose dangerous commands you want to filter. There are

commands filter

2019-04-08 Thread ????
Dear, I've implemented an ssh proxy with Apache MINA SSHD. Now I've got a question: is it possibleto filter remote commands, i.e. I want to reject to execute some dangerous commands like "rm" . BEST REGARDS