Re: [mina-sshd] Restricting ShellFactory based on the user

2019-05-06 Thread Adam Green
Thank you @Lyor, that was so much more simple than the rabbit hole I was going down earlier - I was extending ProcessShellFactory and trying to create my own command. This way was pretty simple, and a not so bad way to reuse your code in the end. Especially at this stage - I'll see what I can do

Re: [mina-sshd] Restricting ShellFactory based on the user

2019-05-06 Thread Lyor Goldstein
>> If I've not take too much of your time already. How do you recommend that I reject a shell? At the moment, I just threw an Unchecked exception - it works, but I'm not sure if I should do something else for 'niceness' sake. There might be something "nicer" - off the top my head though nothing