Install and Configure SFTP server on ubuntu 16.04 (Xenial Xerus) server
MySecureShell was created because of the lack of file transfer features in OpenSSH. OpenSSH was not designed as a file transfer solution, that’s why we made MySecureShell.
Only authorized files and folders can be shown
Advanced logging information
ACL can be made with IP/Usernam/Groups/VirtualHost/...
Confined environments (chroot, which is also available in the latests version of OpenSSH)
Restrict users to have sftp only (shell access is disabled by default)
Install MySecureShell on Ubuntu 16.04 Server
Open the terminal and run the following command
sudo apt-get install mysecureshell
This will complete the SFTP server installation.
Add users for MySecureShell
You can add users using useradd command .You can also update the existing user account to get access to MySecureShell server by edit the /etc/passwd file.
Add New User
sudo useradd -m -s /usr/bin/mysecureshell test1
sudo passwd test1
Adding Existing user to MySecureShell Server
From Command line
sudo usermod -s /usr/bin/mysecureshell test2
sudo vi /etc/passwd
Change columns "shells" and replace it by "/bin/MySecureShell".
Save and Exit the file.
You can test your SFTP server using any SFTP client or from ubuntu system use the following command
sudo sftp [email protected]
How to check who is connected to SFTP server
Use the following command to check who is connected to SFTP server
How to Control of bandwidth
You need to edit the /etc/ssh/sftp_config file and Global Download tag allows to limit the maximum download bandwidth for the overall server.
In this example, all users will be able to download up to a 100k maximum bandwidth and the total maximum bandwidth allowed for the server is 1M
Check Mysecureshell Documentation for detailed configuration options.