FirstSpirit Server under Unix
The client installation for ssh and rsync should take place via the package system of the operating system.
The rsync/ssh web server connection is subsequently configured:
- Login under the FirstSpirit Server user account (fs5) or use su - fs5 as root.
- Generate an ssh key pair: ssh-keygen -t rsa
Accept the default specifications and do not enter a password. - Install the public key on the “web” user account of the web server. Login as “web” via ssh and create the directory .ssh in the home directory: mkdir .ssh
As user “fs5” enter the following on the FirstSpirit Server:
scp .ssh/id_rsa.pub web@www.mydomain.net:.ssh/authorized_keys - Enter the following to check login via the key pair (without password):
ssh web@www.mydomain.net ls -la /var/www - The document directory of the web server should now be listed without having to enter a password.
- To test the rsync connection, enter:
rsync -n -vcrtz -e "ssh -l web" www.mydomain.net:/var/www - The document directory of the web server should be listed again without having to enter a password. Files have not been transferred due to the option “-n”.
If a Windows system is used as a web server, replace /var/www by /cygdrive/c/www.