I did copied the ssh key but still if I want to ssh into it , it seems that the connection hangs and if I run the script it still ask for a password.
See here:
ssh-copy-id clint@stbkp01
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/banner/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
(if you think this is a mistake, you may want to use -f option)
[banner@stapp03 scripts]$ ssh clint@stbk01
^C
[banner@stapp03 scripts]$ sh ecommerce_backup.sh
updating: var/www/html/ecommerce/ (stored 0%)
updating: var/www/html/ecommerce/index.html (stored 0%)
updating: var/www/html/ecommerce/.gitkeep (stored 0%)
clint@stbkp01's password:
IIRC, you can SSH into different App servers from other App servers. However, you can not ssh into the Backup and Storage server from other App servers directly. You need to ssh from jump_host.
The link you shared will not work. You need to share the Topic, Level, and question No. of the task to look into the details.
Alternatively, you can share the Review link of that lab.
I created new ssh keys on AppServer and was able to ssh into BackupServer smoothly and complete the task.
Can you please try this lab again? And, if you face the issue again and the task results in a failure. Please share the Review link, which would help us debug the problem.