Re: Different root and initial directories for SFTP

2018-05-25 Thread Quinn Stevenson
I created https://issues.apache.org/jira/browse/SSHD-825 Quinn Stevenson qu...@pronoia-solutions.com (801) 244-7758 > On May 25, 2018, at 4:43 AM, Stefan Magnus Landrø > wrote: > > That's what I do. > > 2018-05-25

Re: Different root and initial directories for SFTP

2018-05-25 Thread Guillaume Nodet
Ah, I see. It's currently not supported unfortunately : please raise a JIRA for that. In the mean time, you should derive the SftpSubsystem class and override the getDefaultDirectory method to return the Path you want for the given user. Guillaume 2018-05-24 21:00 GMT+02:00 Quinn Stevenson

Re: Different root and initial directories for SFTP

2018-05-24 Thread Quinn Stevenson
Yeah - I’ve tried that. What it does is set’s the root of the virtual filesystem to a different spot for that user. So if I set the defaultHomeDir to target/sftp and the userHomeDir for my test user to target/sftp/home/user, the “root” of the virtual filesystem is target/sftp/home/user. What

Re: Different root and initial directories for SFTP

2018-05-24 Thread Guillaume Nodet
Have you tried setting home dirs for your users on the VirtualFileSystemFactory ? vfsf.setUserHomeDir("the user", the_home_dir); 2018-05-24 15:49 GMT+02:00 Quinn Stevenson : > I’m using Mina SSHD (1.7.0) as an embedded SFTP server for unit testing, > and I’ve come