For this install I chose to use MySecureShell as a small and quick way to stand up an SFTP Server.  As usual all commands are in Bold.

Log into your Ubuntu Server with Admin credentials:

Sudo apt-get install mysecureshell


cd /etc/apt

sudo nano sources.list

Add the following lines:

Deb testing main

Deb-src testing main

And Write out the file



Now update source list and install mysecureshell

sudo apt-get update && sudo apt-get install mysecureshell

To test the SFTP Is installed run:

Whereis mysecureshell


If you have user accounts already created, you need to usermod them to use them, or you can create account:

Create Account:

sudo adduser  <name of account you want to create>

Enter password

Add account you already have:

sudo usermod -s /usr/bin/mysecureshell <username>


To test, either use an SFTP Client i.e FileZilla or connect via CLi

sftp <username>@<sftpserver IP Address>

Enter password and ensure you can Read / Write


User directories

SFTP Data is stored in that users Home directory: