Option to create sFTP users for sites
Hi,
I love this application, but I have some clients wanting FPT access to their site. It would be awesome if EE could have a simple way to give access to sFTP for users.
Thanks!
@matthewkeath
Refer: https://rtcamp.com/tutorials/linux/setup-sftp/
Thanks!
Does that allow individual access to a specific site?
So I can give site owners access? I spoke to a member of your team and they said EE doesn't do that yet.
@matthewkeath Follow this tutorial to give a user access to specific site. https://rtcamp.com/easyengine/docs/chroot-sftp-easyengine/
I followed that and seemed to have blocked the ports as I couldn't login using sFTP or SSH at all.
I reverted this section: Comment and add following lines in /etc/ssh/sshd_config file
And it worked again, but of course now my new user can't login. Any ideas?
@matthewkeath
I reverted this section: Comment and add following lines in /etc/ssh/sshd_config file
Which lines did you reverted? I had create fresh Ubuntu and test everything works fine.
Followed this:
#Comment Following line #Subsystem sftp /usr/lib/openssh/sftp-server
Add following 3 lines
Subsystem sftp internal-sftp Match Group www-data ChrootDirectory /home/%u ForceCommand internal-sftp
Comment following lines
#UsePAM yes #UseDNS no #GSSAPIAuthentication no
Off-topic: for user management, I am thinking about new 'ee user' module.
Idea is to add linux users with proper group permissions and restrictions behind the scene.
Yes, I agree that would be an awesome addition.
@matthewkeath thanks for feedback.
I think ee user commands can be used in for virtual hosting feature internally. It will add a layer of abstraction.
@matthewkeath Thanks for pointing the issue. I have updated the article accordingly.
@harshadyeola That worked a treat. Customers all setup with sFTP!
There is always the option to run Virtual FTP Users, added a post about it here and on rtCamp, seams like a simple, straight forward solution, FTPs would be optimal and should be easy to setup with VSFTPD.
The method explained here is a good start, but a method that's based on MySQL seems like a better alternative, especially if there is gonna be a web interface in the end, and you avoide having a lot of users on your system.
Should make server migration a breeze.
V4 has a separation between sites through docker. We might add support for (S)FTP if there exists a way to directly land users inside docker application container.
But as of now this is something we wont be able to focus further.
@matthewkeath Follow this tutorial to give a user access to specific site. https://rtcamp.com/easyengine/docs/chroot-sftp-easyengine/
This link no longer valid
@matthewkeath Follow this tutorial to give a user access to specific site. https://rtcamp.com/easyengine/docs/chroot-sftp-easyengine/
This link no longer valid
Configure SFTP on EE4 server: https://easyengine.io/handbook/configure-sftp-on-ee4-server/