Raspberry Pi Home Server - FTP ? SFTP ? FTPS ?
In my previous posts I have often spoken to install vsFTPd on the Raspberry Pi. Simple, low-cost disk space and memory, It allows to quickly transfer your files.
Only over articles but also of the comments, Some have spoken of SFTP. In hearing spoken but without really knowing what it is, il a donc bien fallu creuser 😉 Alors voilà en résumé qui fait quoi !
- FTP (File Transfer Protocol) : This is the basic protocol which will allow to transfer files from computer A to computer B
- FTPS (File Transfer Protocol Secure) : It supports FTP and it adds an SSL layer (as the S in https) or its successor TLS. This addition allows you to authenticate remote server and also encrypt the communication. You can easily set it up under vsFTPd. However you will need to generate you even your certificates (you have an example here).
- SFTP (Secure File Transfer Protocol) : This time not need to FTP server. Just a side SSH server service and a client that supports this Protocol. FTP through an SSH stream to be secure.
At home I use Filezilla so the SFTP protocol is supported without problem. I myself am so created a session to connect to the Raspberry by choosing a SFTP connection
Then … thats all ! Side Raspberry, SSHd lance sftp-server which is responsible to manage transfers :
Suddenly I uninstalled vsFTPd and uses more than it. Gain memory is approximately 1 MB. Not much but it less in the system.
For those who is using dropbear as SSH service, you will need to create RSA keys (with dropbearkey) and install sftp-server (Info in English here)