I am using this command for ssh connection and copying file from local to remote server
ssh -o StrictHostKeyChecking=no $SSH_USERS@$SSH_HOSTS “rsync -avz . /opt/”
I am using this command for ssh connection and copying file from local to remote server
ssh -o StrictHostKeyChecking=no $SSH_USERS@$SSH_HOSTS “rsync -avz . /opt/”