Preserve existing ssh config

This commit is contained in:
Michael Vines 2018-09-05 07:47:01 -07:00
parent 017eb10e76
commit 8c51b47e85
1 changed files with 1 additions and 2 deletions

View File

@ -254,9 +254,8 @@ gcloud_PrepInstancesForSsh() {
gcloud compute ssh --zone "$zone" "$name" -- "
set -x;
rm -rf .ssh;
mkdir -p .ssh;
echo \"$(cat "$publicKey")\" > .ssh/authorized_keys;
echo \"$(cat "$publicKey")\" >> .ssh/authorized_keys;
echo \"
Host *
BatchMode yes