Setting up SFTP on Ubuntu Server 16.04 LTS

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

1

cd /etc/apt

sudo nano sources.list

Add the following lines:

Deb http://mysecureshell.free.fr/repository/index.php/ubuntu testing main

Deb-src http://mysecureshell.free.fr/repository/index.php/ubuntu testing main

And Write out the file

2

 

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

4

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>

5

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

6

User directories

SFTP Data is stored in that users Home directory:

/home/<username>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s