summaryrefslogtreecommitdiffstats
path: root/boot/mso_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-05-15 12:25:57 -0400
committerMarco Platania <platania@research.att.com>2017-05-15 12:25:57 -0400
commitac30532d811fbe0c24b84b630a12367416dd7121 (patch)
treedf934afe7f39c7f904ebf9cda533f2e4b3350b50 /boot/mso_install.sh
parent4aac07a3628defdb97e9d54145aadd7263497641 (diff)
[UCA-15] Allow root access to ONAP VMs
Change-Id: I2f70c71cd9c93aace320f4588eb7e4b8cff1bf6d Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'boot/mso_install.sh')
-rw-r--r--boot/mso_install.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/boot/mso_install.sh b/boot/mso_install.sh
index 491db5ce..fe7a9149 100644
--- a/boot/mso_install.sh
+++ b/boot/mso_install.sh
@@ -12,6 +12,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