From ac30532d811fbe0c24b84b630a12367416dd7121 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Mon, 15 May 2017 12:25:57 -0400 Subject: [UCA-15] Allow root access to ONAP VMs Change-Id: I2f70c71cd9c93aace320f4588eb7e4b8cff1bf6d Signed-off-by: Marco Platania --- boot/dcae_install.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'boot/dcae_install.sh') 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 -- cgit 1.2.3-korg