I have tried to add permission as you have told me. But still I am getting Connection_Failed when I try to Test Connection with the remote server. CWP provides me following info after the failed test connection:
Connection_Failed
Don't forget to add pub key from file /root/.ssh/backup/id_rsa.pub on the remote server to the file "~/.ssh/authorized_keys"
Instructions for adding pub key on the remote backup server.
cd ~USERNAME
mkdir .ssh
chmod 700 .ssh
nano .ssh/authorized_keys
*** Now add all content from the file /root/.ssh/backup/id_rsa.pub to .ssh/authorized_keys chmod 600 .ssh/authorized_keys
chown -R USERNAME:USERNAME .ssh
chown USERNAME:USERNAME .ssh/authorized_keys
To test the connection from the command line use the following command: ssh -i /root/.ssh/backup/id_rsa
bkup@XXX.XXX.XXX.XXX -p XXX
Here i feel this line very confusing:
Don't forget to add pub key from file /root/.ssh/backup/id_rsa.pub on the remote server to the file "~/.ssh/authorized_keys"
What I am doing is, I generate the SSH Keys on the remote backup server using ssh-keygen command.
On my CWP server I use same ssh-keygen to generate keys. I also press Generate Key button right under the "Remote Backup Settings" table and I am pasting that key on remote backup server's authorized_keys file.
I have done other configurations too as i mentioned in my first post but nothing is working well for me.