Hey All,
Under the system admin role, my task is to create the bash script to zip the folder and copy into remote server. It should be pass wordless. so i have followed the below steps.
1.) I create passwordless ssh to remote by generating the key which is successful as well when connecting using ssh
2.) I wrote the simple bash to achieve it as below
#!/bin/bash
Create zip archive
zip -r /backup/xfusioncorp_media.zip /var/www/html/media
Transfer zip archive
scp /backup/xfusioncorp_media.zip clint@stbkp01:/backup/
When i check , the zip file is present in the remote server
However my verification fails