aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/new-publish/setup.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/new-publish/setup.sh b/utils/new-publish/setup.sh
index 04748d2..2d27d27 100755
--- a/utils/new-publish/setup.sh
+++ b/utils/new-publish/setup.sh
@@ -91,6 +91,8 @@ function setup_ssh_keys() {
if [ ! -L $HOME/.ssh/authorized_keys ]; then
echo "Moving current account's authorized_keys to /etc/ssh/user-authorized-keys/"
cp $HOME/.ssh/authorized_keys /etc/ssh/user-authorized-keys/$SUDO_USER
+ rm $HOME/.ssh/authorized_keys
+ ln -s /etc/ssh/user-authorized-keys/$SUDO_USER $HOME/.ssh/authorized_keys
fi
# Unlike when reside in ~/.ssh/, in /etc/ssh/... auth keys must be readable enough,
# or won't be picked up by sshd => login lockout.