So often I need to get files to or from my Raspberry Pi, though the same could be said for just about every internet connected device out there... But how to do so? Especially when you don't want to go through all the hassle of setting up SMB and network shares... There is a much easier way, and applies to not only the Raspberry Pi, but just about any device running open SSH (including Check Point's Gaia Operating System). Here's how to do it:

 1. First, you need to edit the SSHd config file:

sudo nano /etc/ssh/sshd_config

2. Look for the line containing "Subsystem sftp ...", in a deafult Raspbian install it will look like this:

Subsystem sftp /usr/lib/openssh/sftp-server

3. Comment out that line and add another, or change it to look like this:

Subsystem sftp internal-sftp

4. Restart the SSHd process:

sudo service sshd restart


And that's it! The username and password will be the same as you have set up for SSH access, no changes needed. In doing this, anyone logging in with proper SFTP credentials over port 22 will automatically start in their home directory, but will be able to traverse the entire filesystem. It is very handy or this reason, AND, it is very simple to set up.

And for a final note: these steps are equally useful for Checkpoint's Gaia operating system. It is just as secure as any other SSH session, so there are no specific security issues in those regards. Feel free to use this to get files to and from your Gaia device (it is exceedingly useful for hotfixes and debug files). It is also documented in the following Checkpoint Secure Knowledge article:

sk98147: Enable SFTP Server in Gaia