How to connect to FTP to a Raspberry Pi

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on email
Share on whatsapp
Table of Contents

It may be very interesting to be able to connect in FTP (File Transfer Protocol) to a Raspberry Pi. For example, when you have its own box DIY Home Automation, it’s a good way to make a backup of the database or the configuration of its automation software files. Conversely, an FTP connection will easily restore a backup in case of failure of the SD Card of the Raspberry Pi.

Enable SSH access on Raspbian

Easier for access to FTP from the Raspberry and use the SFTP secure connection (SSH File Transfer Protocol) proposed by the SSH protocol. Using a secure SSH connection, you will have to install and update FTP server (which is always a potential security hole).

On Raspbian you can activate from the Control Panel Configuration of the Raspberry Pi located in Menu-> Preferences. Then in the tab interfaces , select SSH . Restart the Pi for the change to take effect.

raspbian raspberry pi activer connexion ssh

You can also access the configuration utility of the Raspberry from the Terminal with the command

sudo raspi-config

To learn more about the use of SSH, you can read this previous article.

Before going further, you will need to know the IP address of the Raspberry. To do this, open a Terminal and enter the following command

ifconfig

If the RPI is connected to WiFi, the IP address is in the block wlan0. In Ethernet, the IP address is located in the block eth0.

raspberry pi ifconfig domoticz adresse ip serveur

FileZilla (macOS, Windows, Linux)

FileZilla is the best-known solution. You can recover FileZilla on the here project official site. Open source, FileZilla is free. It consists of some (only available for Windows) server, and a client. FileZilla is available for macOS, Windows 32-bit, 64-bit Windows and Linux.

filezilla

Once installed on your computer, start FileZilla. Set up the connection like this:

  • host : ip address of the Raspberry
  • ID : default IP
  • password: the password of the user IP. Default raspberry
  • Port: 22 (SSH port)
  • press quick connect

filezilla raspberry pi sftp parametres connexion

after a few seconds, you are connected to your Raspberry. I for example logged in my server automation Domoticz. It is very easy to file or retrieve scripts Lua or Python in this way to edit with a text editor.

filezilla raspberry pi sftp connecte domoticz

Winscp (Windows)

Winscp is a free FTP client ( project page) able to connect by SFTP also. The configuration is identical to FileZilla.

winscp parametres connexion sftp raspberry pi

Accept the SSH key

winscp accepter connexion

Once connected, we find left my computer and right tree of the Raspberry Pi.

winscp client sftp connecte raspberry pi

Click to rate this post!
[Total: 1 Average: 5]

Thanks for your reading

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on email
Share on whatsapp

Did you like this project ? Don't miss any more projects by subscribing to our weekly newsletter!

Are you having a problem with this topic?

Maybe someone has already found the solution, visit the forum before asking your question

We will be happy to hear your thoughts

      Leave a Reply

      Ads
      Read more
      Recent posts on the Forum
      DIY Projects
      DIY Projects