Step-by-step recipes for tasks in secuTrial
View the Project on GitHub SwissClinicalTrialOrganisation/secuTrial_recipes
Note: The automatic transfer of reports is described in
the manual of the CustomerAdminTool in section 5.1.
Note: A detailed explanation of how to set up the server
should be discussed with a systems administrator.
An example can be found at the very bottom of
this page.
The example above will export myfile_name.csv once a day.
Register RSA key for your SFTP server on your secuTrial server:
useradd -s /bin/false user
passwd user# create directories
# (only this directory will be writable by SFTP)
mkdir -p /home/user/secutrialexports# set permissions
chown root:root -R /home/user/
chmod 755 /home/user/
chown user:user /home/user/secutrialexports
chmod 755 /home/user/secutrialexports/
chmod g+s /home/user/secutrialexports/# edit SSH config
# (/etc/ssh/sshd_config)
# ----------------------------------------->8---------------------------------------# [...]
AllowUsers user
# [...]# [...]
# must be at the very end of the file
Match User user
ChrootDirectory /home/user/
ForceCommand internal-sftp
AllowTCPForwarding no
X11Forwarding no
# ----------------------------------------->8---------------------------------------# restart SSH
service ssh restart
This recipe was tested under secuTrial version 5.5.1.10