.ssh directory in the destination directory.Set the .ssh directory permissions by using the following command:
chmod 700 .ssh
Use the following command to set the private key file permissions:
chmod 400
Run your rsync command. For example, the following is an rsync command between docroot directories on the same infrastructure:
rsync -avz -e "ssh -i /home/sourcedocroot/.ssh/id_rsa_rsync" [email protected]:/mnt/gfs/sourceenv.dev/files /mnt/gfs/destinationenv.dev/files/Setting up the SSH keys between applications is also a method to help enable SSH tunneling between infrastructure, or between your infrastructure and an external application. For more information, see SSH tunneling for infrastructure-side applications.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
.ssh directory in the destination directory.Set the .ssh directory permissions by using the following command:
chmod 700 .ssh
Use the following command to set the private key file permissions:
chmod 400
Run your rsync command. For example, the following is an rsync command between docroot directories on the same infrastructure:
rsync -avz -e "ssh -i /home/sourcedocroot/.ssh/id_rsa_rsync" [email protected]:/mnt/gfs/sourceenv.dev/files /mnt/gfs/destinationenv.dev/files/Setting up the SSH keys between applications is also a method to help enable SSH tunneling between infrastructure, or between your infrastructure and an external application. For more information, see SSH tunneling for infrastructure-side applications.
If this content did not answer your questions, try searching or contacting our support team for further assistance.