Browse Tag: setup sftp raspberry pi

How to Setup a Raspberry Pi SFTP Server

SFTP stands for SSH File Transfer Protocol and is a secure way of remotely transferring files between 2 computers. It is a more preferred way of transferring files over the standard FTP protocol because it uses a secure connection meaning all your data is encrypted. FTP is an insecure way of transferring files and can easily be monitored over your network to intercept and see what files are being transferred, like secure bank information.

SFTP runs on port 22, the same standard port as a regular SSH connection, and FTP runs on port 21. It is advised that you change your SSH Port to improve security on your network. You can also port forward port 22 on your router to allow access to your Raspberry Pi server over SFTP from anywhere outside your network, but make sure you change your SSH port if you will be doing this to reduce the amount of attempted hacks on your Raspberry Pi SFTP server.

Today I will be showing you how to setup a Raspberry Pi SFTP server so that you can easily access files on your Raspberry Pi. This can be very useful if you are using your Raspberry Pi as a Network Attached Storage device or simply as a web server. Transferring files over SFTP will allow you to quickly download or upload multiple files with no issues and make changes to your web server on the go.


To setup our Raspberry Pi as a SFTP Server


You will need the following:


Setting up your Raspberry Pi SFTP is very easy and all we need to do is basically enable the SSH server on our Raspberry Pi because our SFTP server will be transferring files over SSH. Open a new terminal window on Raspbian desktop and type the following command to open the Raspberry Pi config tool. Continue Reading