Yes, you can upload your files using SFTP (FTP over SSH). You can log in with the same credentials as you're using for SSH.
But I wouldn't enable remote logins for root on your server. The root user can do anything on your server so if you get hacked while remote root logins are enabled anything can happen.
I suggest you just set a password for the www-data user (this is the user that runs Apache2, set a password using passwd www-data
) and make www-data the owner of /var/www
(chown -R www-data:www-data /var/www
).
Now log in with the www-data user and the password you just set (I recommend you to use SFTP instead of FTP as it's more secure) and you should be able to upload your files to /var/www
.
Note: You can use a plugin for Eclipse to automatically sync your files with your server using SFTP.
/var/www/
using the graphical interface and not usesudo
for copying them? – jobin Apr 24 '14 at 06:08