I am on Amazon EC2 using Ubuntu 10.04.2
My web folder is owned by www-data so I want to be able to log into my server as www-data for ssh and scp.
Adding the line to my /etc/ssh/sshd_config does not seem to work.
On Debian, which Ubuntu is based on, the www-data user has /bin/sh as the default shell. To enable SFTP, you can create
You can verify the www-data users settings (home dir, shell, etc) using
Make sure your sshd_config has
This is kind of insecure. I would suggest you to upload to an intermediate area using another user and run a
If you really insist on logging on as
In the end, you can also try some solutions of this question.
Logging in as www-data for scp is waste of time.
For the scp command why you dont use