gcloud app --quite ssh ... still asks to confirm the key fingerprint. cannot be automated

90 views
Skip to first unread message

gu...@genotek.ru

unread,
Sep 28, 2017, 3:55:33 PM9/28/17
to Google App Engine
I am trying to call the following command from a cron job on a local machine

gcloud --quiet app instances ssh $instance --service MY_SERVICE --version $version -- COMMAND

in the case of a freshly deployed instance this fails in cron job, since there is nobody to answer a question

RSA key fingerprint is XXXXXXXXXXX
Are you sure you want to continue connecting (yes/no)? yes
why --quiet is not enough to quiet the command?
Under normal ssh, I could use a -o StrictHostKeyChecking=no option, but what am I supposed to do here?

Thanks.

Kamran (Google Cloud Support)

unread,
Sep 28, 2017, 11:47:09 PM9/28/17
to Google App Engine

Currently there is no equivalent flag of StrictHostKeyChecking for  "gcloud beta app instances ssh" command. I've forwarded your feature request that is opened on this public issue tracker to our engineering team for evaluation. We'll update that thread once the flag is added.
Reply all
Reply to author
Forward
0 new messages