[ https://issues.apache.org/jira/browse/SSHD-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127017#comment-17127017 ]
Lyor Goldstein edited comment on SSHD-1012 at 6/5/20, 6:55 PM: --------------------------------------------------------------- In the future, such questions are better suited to be posed on dev@mina.apache.org - we try and reserve issues for action items that require code changes and/or research. As per your question - see {{SshServer#main}} code as an example - simply ignore the code that initializes the shell and/or the SCP command factory. {quote} avoid exposing the file system to clients {quote} You are doing that since you allow SFTP. If you mean that you want to sandbox the users as well then use a {{VirtualFileSystemFactory}} and call {{sshd.setFileSystemFactory}} with it was (Author: lgoldstein): In the future, such questions are better suited to be posed on dev@mina.apache.org - we try and reserve issues for action items that require code changes and/or research. As per your question - see {{SshServer#main}} code as an example - simply ignore the code that initializes the shell and/or the SCP command factory. > Force SSH connections to SFTP > ----------------------------- > > Key: SSHD-1012 > URL: https://issues.apache.org/jira/browse/SSHD-1012 > Project: MINA SSHD > Issue Type: Question > Affects Versions: 0.5.0 > Environment: Windows Server 2012 > Reporter: Shiva > Priority: Critical > Labels: SFTP, SSH, disable, newbie, sshd > > Hi, > > I am implementing the SFTP server using Apache Mina SSHD server. I want to > force any SSH connections to the SFTP server to use SFTP mode and disable > shell access to avoid exposing the file system to clients. > > In the traditional SSH server on Linux, we use the "ForceCommand > internal-sftp" in the sshd_config file to achieve this. > > Can someone please help to achieve this in SFTP server implementation using > Apache Mina? > > Thank you for any help in advance. > > Regards, > Shiva -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org