easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

Option to create sFTP users for sites

Open ghost opened this issue 12 years ago • 15 comments

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!

ghost avatar Oct 21 '14 08:10 ghost

@matthewkeath

Refer: https://rtcamp.com/tutorials/linux/setup-sftp/

MiteshShah avatar Oct 21 '14 12:10 MiteshShah

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.

ghost avatar Oct 22 '14 01:10 ghost

@matthewkeath Follow this tutorial to give a user access to specific site. https://rtcamp.com/easyengine/docs/chroot-sftp-easyengine/

harshadyeola avatar Oct 24 '14 08:10 harshadyeola

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?

ghost avatar Oct 31 '14 07:10 ghost

@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.

MiteshShah avatar Oct 31 '14 08:10 MiteshShah

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

ghost avatar Oct 31 '14 08:10 ghost

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.

rahul286 avatar Oct 31 '14 08:10 rahul286

Yes, I agree that would be an awesome addition.

ghost avatar Oct 31 '14 08:10 ghost

@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.

rahul286 avatar Oct 31 '14 08:10 rahul286

@matthewkeath Thanks for pointing the issue. I have updated the article accordingly.

harshadyeola avatar Oct 31 '14 09:10 harshadyeola

@harshadyeola That worked a treat. Customers all setup with sFTP!

ghost avatar Nov 01 '14 10:11 ghost

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.

benzon avatar Mar 19 '15 00:03 benzon

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.

rahul286 avatar Aug 03 '18 13:08 rahul286

@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

prionkor avatar Jan 19 '24 16:01 prionkor

@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/

petermann avatar Jan 19 '24 18:01 petermann