Step 9: Install an FTP Server
For this I chose to use vsftp, as it's pretty simple to set up.
Again, either start an SSH session, or continue if you're already in one.
Type in "sudo chown -R pi /var/www" <-- IMPORTANT (otherwise you won't be able to upload anything)
Type in "sudo apt-get install vsftpd" and hit Return / Enter
Now type in "sudo nano /etc/vsftpd.conf" and hit Return / Enter
Search through the file and change the following lines:
anonymous_enable=YESChange To anonymous_enable=NO
#local_enable=YESChange To local_enable=YES
#write_enable=YES Change To write_enable=YES
Also, add a line to the bottom of the file:
Thenhold the Ctrl key and press "x", then "y", then the Return / Enter key.
Now restart the FTP server with "sudo servce vsftpd restart"
At the moment you will need to change the directory every time you login by FTP, to solve this:
Type in any password (this is only temporary)
Start a new SSH session
Password (the one you just set)
find the line "pi:x;1000:1000:Raspberry Pi User,,,:home/pi:/bin/bash" and change it to "#pi:x;1000:1000:Raspberry Pi User,,,:home/pi:/bin/bash".
Then hold the Ctrl key and press "x", then release Ctrl and press "y" then hit Return / Enter.
"usermod -d /var/www pi"
Now close the SSH session, and start a new one with username: pi and your password, and type the following:
"usermod -L root"
Now you are able to connect to your Raspberry Pi with an FTP client, using the following information:
Host: (Hostname you set - I used raspberryPi)
Password: (Password you set previously)