I am heading (maybe…) a problem about
--checkout-key option of circleci local cli.
I want to clone a private git repo, so I wondered that ssh key is enabled as default.
But stdout asked me
Are you sure you want to continue connecting (yes/no)?.
So I added a step to config.yml as workaround like below.
- run: name: Registar github.com as knows host command: | mkdir ~/.ssh chmod 700 ~/.ssh ssh-keyscan github.com >> ~/.ssh/known_hosts ssh -T email@example.com
But stdout shows me
Permission denied (publickey).… ;(
Next I use
--checkout-key option explicitly with correct ssh key path, but the same error occurred.
In my host environment, of course ssh key works fine.
Please tell me how can I solve this problem.