Thirty Three Down Logo

[SOFT] Easy SFTP file transfer for the Raspberry Pi

SAMBA file sharing is great when it works, but sometimes a router on your network is going to give you a hard time or you only need a one-off transfer. The SSH protocol allows you to transfer files and folders to your Raspberry Pi over Secure File Transfer Protocol out of the box.

This file- and folder- sharing technique uses SSH credentials for the Raspberry Pi. Be careful who you share these credentials with!

Instead of using Samba, we decided to use SFTP, an SSH extension for secure file transfer.


Activating SSH

Finding your Pi's IP address

Now that your Pi has restarted, both SSH and SFTP should be running in the background. Let's find out where it is on our network with the ifconfig command in the terminal.

You should be able to find your IP address in the inet field under the corresponding network adapter: eth0 if your Raspberry Pi is wired to your router, wlan0 if you are using WiFi. It will look like a string of numbers like 111.222.3.44. Write that IP address down, we'll be using it in to connect to our Pi in a moment!

Connecting to your Pi's SFTP server

Your Pi is now running a SFTP server: we are going to use a SFTP client to access it.

You should now be logged in to your Raspberry Pi, and be able to access all the file and folders you need from there: you can drag and drops to and from your Raspberry Pi directly using the FileZilla client. Congratulations!

How do we use it?

We use Raspberry Pis to host a lot of music and video files at the studio. An easy way to use this method to stream media files is to:

That's it! After a (usually short) loading time, VLC will start playing the file or folder. Enjoy!

Extra resources

Raspberry Pi questions