From b7661282d10eefe9df260841286f49d04f248c7a Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Thu, 10 Nov 2011 13:09:25 -0800 Subject: [PATCH] still trying to get pub key working --- tools/build_uec.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/build_uec.sh b/tools/build_uec.sh index 174ac47..eabc1e7 100755 --- a/tools/build_uec.sh +++ b/tools/build_uec.sh @@ -191,12 +191,13 @@ EOF # Setup stack user with our key if [ -e ~/.ssh/id_rsa.pub ]; then + PUB_KEY=`cat ~/.ssh/id_rsa.pub` cat >> $vm_dir/uec/user-data< /opt/stack/.ssh/authorized_keys +echo "$PUB_KEY" > /opt/stack/.ssh/authorized_keys chown -R stack /opt/stack chmod 700 /opt/stack/.ssh chmod 600 /opt/stack/.ssh/authorized_keys