CORD-1455 Fix missing SSH key for HW pod install
Change-Id: Ic3ce7c431cfede0db5843d879f4f27cef85265ba
diff --git a/scripts/cord-in-a-box.sh b/scripts/cord-in-a-box.sh
index 45c2f64..8f864f1 100755
--- a/scripts/cord-in-a-box.sh
+++ b/scripts/cord-in-a-box.sh
@@ -208,12 +208,9 @@
# It allows SSH'ing to the machine via 'ssh corddev'
sudo su $USER -c "VAGRANT_CWD=$VAGRANT_CWD vagrant ssh-config corddev prod > $SSHCONFIG"
- # copy host SSH key to corddev, allow it access on prod (vagrant ssh key already has access)
+ # copy host SSH keypair to corddev
scp ~/.ssh/id_rsa* corddev:.ssh
ssh corddev "chmod go-r ~/.ssh/id_rsa"
-
- scp ~/.ssh/id_rsa.pub prod:/tmp/install_id_rsa.pub
- ssh prod "cat /tmp/install_id_rsa.pub >> ~/.ssh/authorized_keys"
}
function install_head_node() {