Failed attempt at creating SFTP and SSH Users

Hi guys .

I just followed these instructions:

everything was going great until I encountered these problems.

In this step :

root@example.com:~# vim /etc/ssh/sshd_config
# Find below line
Subsystem sftp /usr/lib/openssh/sftp-server
# Replace above line with following line
Subsystem sftp internal-sftp

# Add following lines at EOF
Match group www-data 
X11Forwarding no 
ChrootDirectory %h 
AllowTcpForwarding no 
ForceCommand internal-sftp

I blocked my self into ssh …

and the second situation .

I can’t upload any image in wordpress or php

Thank you

Hello, i have created a sftp using this command useradd -G www-data -ms /bin/false ee-user now i want to enable ssh for this user ssh (restricted to jailed home directory) . please help.

Thanks

I’ve been using this solution:

http://blog.netgusto.com/solving-web-file-permissions-problem-once-and-for-all/

There are pros and cons, of course. But it solved my issue, perhaps it may be useful for you.

1 Like

Does that give sftp user to ssh to his / her home directory ?

If you had read the post I suggested you’d already be aware of the answer to your question. :-/

1 Like

It worked . Thanks