Recommended VPS Complete list of best VPS hosting providers.

Install MySecureShell on Ubuntu, CentOS, Debian and Fedora VPS

Follow steps below to build a working secure FTP server using MySecureShell on Ubuntu, CentOS, Debian and Fedora VPS. Before we step forward, it is better to firstly read some basic information about what MySecureShell is.

Based on OpenSSH, MySecureShell is a really lightweight very secure FTP server you can install in major Linux distribution. MySecureShell is shortly a great alternative to vsvtpd because it is more secure, multi-platform and it is free (Open Source license).

mysecureshell-install

Some Key Features

  • Bandwidth control function;
  • Security rights information ;
  • Only authorized files and folders can be shown ;
  • Easy installation and administration of the server with a graphical interface ;
  • Management of activity of the server with logs ;
  • Restrictions of users by ip, groups ;
  • Power Encryption ;
  • No certificate problems non-certified or certificate generation ;
  • Support public and private keys for secure authentication without password ;
  • Only one port to open for SSH and SFTP (port 22 by default) ;
  • The protocol used is much more optimized than FTP because it is based on the protocol of the NFS ;
  • Free and open source ;
  • Advanced logging information ;
  • ACL can be made with IP/Usernam/Groups/VirtualHost/… ;
  • Confined environments (chroot, which is also available in the latest version of OpenSSH) ;
  • Restrict users to have sftp only (shell access is disabled by default) ;

How to Install

The easiest way to install MySecureShell server on your vps is done via repository which luckily can be added in few seconds. Here’s the steps for each Linux distribution:

Step 0 – Login to your server as root or as user with sudo privilege then switch to root by using su command.

On Debian Server

Step 1 – If your server is running on Debian 8, simply issue command below:

apt-get install mysecureshell -y

That’s it. Luckily MySecureShell is included already in Debian 8 repository.

Step 2 – But however if you chose to use Debian 7 or lower, then you have to follow more steps below:

Edit source.list file with your favorite editor program like Nano

nano /etc/apt/sources.list

Step 3 – Now put this text overthere

deb http://mysecureshell.free.fr/repository/index.php/debian testing main
deb-src http://mysecureshell.free.fr/repository/index.php/debian testing main

Do not forget to save changes and exit the editor (In Nao it is Control+O then Control+X)

Step 4 – Import GPG Key with this one liner:

gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys E328F22B; gpg --export E328F22B | apt-key add -

Step 5 – Finally update your server so the newly added repositoryy can be applied.

apt-get update -y

Step 6 – Finally. Here’s the magic command to install it:

apt-get install mysecureshell -y

On Ubuntu Server

Step 1 – If your server is running on Ubuntu 15.04, simply issue command below:

apt-get install mysecureshell -y

That’s it. Luckily MySecureShell is included already in Ubuntu 15.04 repository.

Step 2 – But however if you chose to use Ubuntu 14.04 or lower, then you have to follow more steps below:

Edit source.list file with your favorite editor program like Nano

nano /etc/apt/sources.list

Step 3 – Now put this text overthere

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

Do not forget to save changes and exit the editor (In Nao it is Control+O then Control+X)

Step 4 – Import GPG Key with this one liner:

gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys E328F22B; gpg --export E328F22B | apt-key add -

Step 5 – Finally update your server so the newly added repository can be applied.

apt-get update -y

Step 6 – Finally. Here’s the magic command to install it:

apt-get install mysecureshell -y

On CentOS Server / RHEL

Step 1 – You have to firstly alter /etc/yum.conf file. So edit it using your favorite text editor like Nano:

nano /etc/yum.conf

Step 2 – In Nano, scroll down the page and put these lines in the end part:

[mysecureshell]
name=MySecureShell
baseurl=http://mysecureshell.free.fr/repository/index.php/centos/$basearch/
enabled=1
gpgcheck=0

Do not forget to save changes and exit the editor (In Nao it is Control+O then Control+X)

Step 3 – Finally update your server so the newly added repository can be applied.

yum update -y

Step 4 – Then now use command below to start the installation:

yum install mysecureshell -y

On CentOS Server / RHEL

Step 1 – You have to firstly alter /etc/yum.conf file. So edit it using your favorite text editor like Nano:

nano /etc/yum.conf

Step 2 – In Nano, scroll down the page and put these lines in the end part:

[mysecureshell]
name=MySecureShell
baseurl=http://mysecureshell.free.fr/repository/index.php/fedora/$basearch/
enabled=1
gpgcheck=0

Do not forget to save changes and exit the editor (In Nao it is Control+O then Control+X)

Step 3 – Finally update your server so the newly added repository can be applied.

yum update -y

Step 4 – Then now use command below to start the installation:

yum install mysecureshell -y

That’s it. MySecureShell is now ready-to-use. Thanks for reading my first article here at Servermom.

UPDATE:
How to use and configure MySecureShell (with common setup)

3 Comments

Add a Comment

Your email address will not be published. Required fields are marked *

Get more stuff like this
in your inbox

Subscribe and get interesting stuff plus faster updates to your email.