[UCA-15] Allow root access to ONAP VMs
[demo.git] / boot / aai_install.sh
index d11e1e1..dcb7119 100644 (file)
@@ -10,6 +10,10 @@ CLOUD_ENV=$(cat /opt/config/cloud_env.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