我正在使用circleci 2.0,我试图让circleci通过ssh进入一个gcp实例并使用这个命令启动一个部署脚本
sudo /opt/google-cloud-sdk/bin/gcloud compute ssh instance-1
--command=/home/deploy_staging.sh --zone=us-east1-b
从我的本地机器上执行此操作很好,但是当我尝试从 circleci 执行此操作时,我收到此错误:
WARNING: The public SSH key file for gcloud does not exist.
WARNING: The private SSH key file for gcloud does not exist.
WARNING: You do not have an SSH key for gcloud.
WARNING: SSH keygen will be executed to generate a key.
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Too long with no output (exceeded 10m0s)
显然这是 ssh 的问题。我读了一些关于将 ssh 密钥放在 gcp 实例中的内容,并且我已经将本地机器的 ssh 密钥放在那里,但这仍然不起作用。