Troubleshoot - by Hostrare
There are various options open to Rsync and SCP over non-standard ssh ports and key data. Here is a simple part to back up your records and configure them with Cron jobs.
Rsync is a great tool that permits you to transfer and synchronize data between servers. The control can be applied over SSH which encrypts the link. It also gives a lot of choices that can be used such as archive mode, backup mode, data compression during the transfer, etc.
SCP permits files to be followed to, from, or within many hosts. It manages ssh for data transfer and gives the same authentication and same level of safety as ssh. By default, SCP uses the Triple-DES cipher to encrypt the data being sent. Using the Blowfish cipher has been shown to improve speed. This can be done by using choice -c blowfish in the centerline.
If you want to create a password less ssh key auth without asking the password, use below steps to configure it.
#ssh-keygen
Make sure you gave valid path.
Once created we can authorize the usage of the SSH key pair by adding the SSH public key inside a file called authorized_keys situated inside the .ssh/ folder:
Copy .ssh/id_rsa.pub to remote client server .ssh/authorized__keys
Verify the authentication is working fine.
# ssh @
There are many options and command available in Rsync to copy the files, here given an only simple example.
Over non-standard ssh port
# rsync -avz -e "ssh -p $portNumber" /source/dir/ user@remoteip:/remote/dir
Over ssh key
# rsync -avz -e "ssh -i /home/ssh-key.pem" /source/dir/ user@remoteip:/remote/dir
Different port and SSH key
# rsync -avz -e "ssh -p $portNumber -i /home/ssh-key.pem" /source/dir/ user@remoteip:/remote/dir
There are many options and command available in SCP to copy the files, here given only simple example.
Over non-standard ssh port
# scp -r -P $portNumber /source/dir/ user@remoteip:/remote/dir
Over ssh key
# scp -r -i /home/ssh-key.pem /source/dir/ user@remoteip:/remote/dir
Different port and SSH key
# scp -r -P $portNumber -i /home/ssh-key.pem /source/dir/ user@remoteip:/remote/dir
our suuport team here for you 24/7
+8801977507015support@hostrare.comsend a leter Whether you are looking for a personal website hosting plan or a business website hosting plan, We are the perfect solution for you. Our powerful website hosting services will not only help you achieve your overall website goals, but will also provide you with the confidence you need in knowing that you are partnered with a reliable and secure website hosting platform.