# Create a new user called "storage"
sudo useradd storage --create-home --user-group
All clients connect through this user account, there's not need to add more users to link more clients.
# Create a file to store authorized public keys sudo mkdir /home/storage/.ssh sudo touch /home/storage/.ssh/authorized_keys # Set the right permissions in the file sudo chmod 700 /home/storage/.ssh sudo chmod 600 /home/storage/.ssh/authorized_keys
Every SparkleShare client uses its own SSH public key. This key can be found in ~/SparkleShare/Your Name's link code.txt after you've started and configured a client for the first time. Paste the contents of this file on a new line in authorized_keys to link a client.
Open /etc/ssh/sshd_config in an editor and add the following lines:
Match User storage PasswordAuthentication no
Finally, restart the SSH daemon to use the new configuration:
# Restart SSH sudo /etc/init.d/ssh restart # on Debian sudo /etc/init.d/sshd restart # on Fedora
# Install Git sudo apt-get install git-core sudo yum install git # Create a Git repository (create as many as you need) sudo git init --bare /home/storage/MyProject sudo chown -R storage:storage /home/storage
Click the SparkleShare status icon and select Add Hosted Project. Select On my own server, enter your server address in the Address field and /home/storage/MyProject in the Remote Path field. Click Add.
SparkleShare has now been linked to your server!