From 87ae2e157841143cd65042e323645a14d7e536cb Mon Sep 17 00:00:00 2001 From: Kelsey Hightower Date: Sun, 11 Sep 2016 08:20:43 -0700 Subject: [PATCH] update ssh login info --- docs/01-infrastructure-aws.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/01-infrastructure-aws.md b/docs/01-infrastructure-aws.md index cde397d..66373ca 100644 --- a/docs/01-infrastructure-aws.md +++ b/docs/01-infrastructure-aws.md @@ -262,6 +262,22 @@ chmod 600 ~/.ssh/kubernetes_the_hard_way ssh-add ~/.ssh/kubernetes_the_hard_way ``` +#### SSH Access + +Once the virtual machines are created you'll be able to login into each machine using ssh like this: + +``` +WORKER_0_PUBLIC_IP_ADDRESS=$(aws ec2 describe-instances \ + --filters "Name=tag:Name,Values=worker0" | \ + jq -j '.Reservations[].Instances[].PublicIpAddress') +``` + +> The instance public IP address can also be obtained from the EC2 console. Each node will be tagged with a unqiue name. + +``` +ssh ubuntu@${WORKER_0_PUBLIC_IP_ADDRESS} +``` + ### Virtual Machines #### etcd