Unable to do a ssh-cop-id from stapp01 to backup server stbkp01

Hi Team,

I am trying to do the task for kodecloud challenge on 100 days of devops,when I try to generate a key and copy the private key to backup server stblp01 I get the error as could not resolve hostname stbkp01 can someone help me out here,also attaching screenshot for reference.


Could you please share which lab this is?

BTW, ssh-copy-id copies the public key from the host and appends it to the remote server’s .ssh/authorized_keys

sorry my bad it should be public key, this is the Day 10 task under 10Days of Devops
Day10

It’s possible that you’re supposed to copy the backup over to the Storage Server (which is ststor01) rather than to the backup server (which is stbkp01). I’d need to see the exact task definition you saw when you ran the task, since sometimes these things are randomized. In earlier versions of this task we always sent the backup to stbkp01, but if that’s not how your task was set up, the odds are good that stbkp01 will not be accessible.

Interesting ,now that has been changed as you said ealrier it was pointing to backup server to copy the backup now it is asking to copy to storage server when I ran the task again!!

I’m not sure why the lab team made that choice, but sometimes it’s easier to change details of the task than to fix certain kinds of bugs, I would guess :slight_smile: