for instance in worker-0 worker-1 worker-2; do
gcloud compute scp ca.pem ${instance}-key.pem ${instance}.pem ${instance}:~/
done
I am getting:
/usr/bin/scp: Target is not a directory, but more files selected for upload
ERROR: (gcloud.compute.scp) [/usr/bin/scp] exited with return code [255].
/usr/bin/scp: Target is not a directory, but more files selected for upload
ERROR: (gcloud.compute.scp) [/usr/bin/scp] exited with return code [255].
/usr/bin/scp: Target is not a directory, but more files selected for upload
ERROR: (gcloud.compute.scp) [/usr/bin/scp] exited with return code [255].
Hi,
when running below
for instance in worker-0 worker-1 worker-2; do gcloud compute scp ca.pem ${instance}-key.pem ${instance}.pem ${instance}:~/ done
I am getting:
/usr/bin/scp: Target is not a directory, but more files selected for upload ERROR: (gcloud.compute.scp) [/usr/bin/scp] exited with return code [255]. /usr/bin/scp: Target is not a directory, but more files selected for upload ERROR: (gcloud.compute.scp) [/usr/bin/scp] exited with return code [255]. /usr/bin/scp: Target is not a directory, but more files selected for upload ERROR: (gcloud.compute.scp) [/usr/bin/scp] exited with return code [255].
Can someone please help me with this error?
Thanks