From b557563efc58e452b3727cbae5e50c0c9140e9a7 Mon Sep 17 00:00:00 2001 From: Alexander Lutay <alutay@sipwise.com> Date: Wed, 18 Nov 2015 15:13:07 +0100 Subject: [PATCH] MT#16489 Switch Vagrant VMs from .ssh/authorized_keys to .ssh/sipwise_vagrant_key Change-Id: I18b8d8055614810f8191d588d2e5a514d84e441c --- deployment.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment.sh b/deployment.sh index c4945a3..600c8d2 100755 --- a/deployment.sh +++ b/deployment.sh @@ -2027,13 +2027,13 @@ vagrant_configuration() { echo "Adjusting ssh configuration for user sipwise (add Vagrant SSH key)" mkdir -p "${TARGET}/${SIPWISE_HOME}/.ssh/" - cat $ngcp_vmbuilder/config/id_rsa_sipwise.pub >> "${TARGET}/${SIPWISE_HOME}/.ssh/authorized_keys" - chroot "${TARGET}" chown sipwise:sipwise ${SIPWISE_HOME}/.ssh ${SIPWISE_HOME}/.ssh/authorized_keys + cat "${ngcp_vmbuilder}/config/id_rsa_sipwise.pub" >> "${TARGET}/${SIPWISE_HOME}/.ssh/sipwise_vagrant_key" + chroot "${TARGET}" chown sipwise:sipwise "${SIPWISE_HOME}/.ssh" "${SIPWISE_HOME}/.ssh/sipwise_vagrant_key" fi echo "Adjusting ssh configuration for user root" mkdir -p "${TARGET}/root/.ssh/" - cat $ngcp_vmbuilder/config/id_rsa_sipwise.pub >> "${TARGET}/root/.ssh/authorized_keys" + cat "${mngcp_vmbuilder}/config/id_rsa_sipwise.pub" >> "${TARGET}/root/.ssh/sipwise_vagrant_key" # see https://github.com/mitchellh/vagrant/issues/1673 # and https://bugs.launchpad.net/ubuntu/+source/xen-3.1/+bug/1167281