summaryrefslogtreecommitdiffstats
path: root/boot/dcae_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'boot/dcae_install.sh')
-rw-r--r--boot/dcae_install.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/boot/dcae_install.sh b/boot/dcae_install.sh
index 6ea93ff2..ee818e19 100644
--- a/boot/dcae_install.sh
+++ b/boot/dcae_install.sh
@@ -42,6 +42,10 @@ if [[ $CLOUD_ENV != "rackspace" ]]
then
# Add host name to /etc/host to avoid warnings in openstack images
echo 127.0.0.1 $(hostname) >> /etc/hosts
+
+ # Allow remote login as root
+ mv /root/.ssh/authorized_keys /root/.ssh/authorized_keys.bk
+ cp /home/ubuntu/.ssh/authorized_keys /root/.ssh
fi
# Set private IP in /etc/network/interfaces manually in the presence of public interface