From a2a49adf14990075ea6b338159c461668615ff04 Mon Sep 17 00:00:00 2001 From: redsoxfantom Date: Mon, 29 Jan 2024 10:09:53 -0500 Subject: [PATCH] Specify public key --- docs/04-certificate-authority.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/04-certificate-authority.md b/docs/04-certificate-authority.md index 1885647..46d81d2 100644 --- a/docs/04-certificate-authority.md +++ b/docs/04-certificate-authority.md @@ -424,9 +424,9 @@ done ``` for instance in worker-0 worker-1 worker-2; do IP=$(az vm show -d --name ${instance} --query "publicIps" -o tsv) - scp ca.pem azureuser@${IP}:/home/azureuser - scp ${instance}-key.pem azureuser@${IP}:/home/azureuser - scp ${instance}.pem azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway ca.pem azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway ${instance}-key.pem azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway ${instance}.pem azureuser@${IP}:/home/azureuser done ``` @@ -444,12 +444,12 @@ done ``` for instance in controller-0 controller-1 controller-2; do IP=$(az vm show -d --name ${instance} --query "publicIps" -o tsv) - scp ca.pem azureuser@${IP}:/home/azureuser - scp ca-key.pem azureuser@${IP}:/home/azureuser - scp kubernetes-key.pem azureuser@${IP}:/home/azureuser - scp kubernetes.pem azureuser@${IP}:/home/azureuser - scp service-account-key.pem azureuser@${IP}:/home/azureuser - scp service-account.pem azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway ca.pem azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway ca-key.pem azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway kubernetes-key.pem azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway kubernetes.pem azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway service-account-key.pem azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway service-account.pem azureuser@${IP}:/home/azureuser done ```