summaryrefslogtreecommitdiffstats
path: root/boot/sdnc_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'boot/sdnc_install.sh')
-rw-r--r--boot/sdnc_install.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/boot/sdnc_install.sh b/boot/sdnc_install.sh
index 44c15580..a62aeab9 100644
--- a/boot/sdnc_install.sh
+++ b/boot/sdnc_install.sh
@@ -11,6 +11,10 @@ GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
if [[ $CLOUD_ENV != "rackspace" ]]
then
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