You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Adam Green <ad...@mystery-inc.org> on 2019/05/01 17:15:56 UTC

[mina-sshd] Restricting ShellFactory based on the user

Hello all,
I have a feeling this is a very simple question, but I'm missing
something.  Hopefully you can guide me or correct me!

I am embedding the SSHD server and I want to only allow certain users to
request a shell - for other users, I want it to deny the request as if I
hadn't configured a ShellFactory.

I've successfully chrooted users and used the session to work out the home
directory for other aspects (SFTP for example), but can't work out if it is
possible to do similar with the shell.

Or is it that I have to make the shell command decide this?

Any hints or direction would be much appreciated.

Many thanks,
Adam.