Linux bash script task failed!

@Inderpreet @kodekloud-support3
I just completed above task as per question description and comunity feedback but it still failed. Plese let me know what was missed? Task failed reason was is not found on App Server 1 is not found on backup server

  • created file under scripts directory in app server 1 and gave execute permission.
  • executed the script as tony@stapp01
  • validated that file is copied to backup server under /backup directory using
    ssh clint@ ls -lh /backup

Is it because the user tony@stapp01 did not have permission to zip /var/www/html/blog? Missed to check that one :slight_smile:

If it is true, the reasons given for task failure is not accurate.

Were you setting up passworless (ssh-keygen/ssh-copy-id) using root or tony user ???
surely you must run them by tony including sudo permission in your commands and not by runinig the above cmds using root user. you were asked to setup the passwordless for tony and not for root :face_with_monocle: :face_with_monocle: :face_with_monocle: :face_with_monocle:

i think the error you made is while you were trying to setup passwordless for root user not for tony user
so you must run cmds by tony
“tony@stapp01 # sudo ssh-copy-id clint@stbkp01” that’s way you will create a key and setup passwordless for tony user and not for root.