This commit is contained in:
Luk Lu
2022-04-01 14:55:54 +08:00
parent 4cd12adc62
commit 308e73a61b
9 changed files with 20 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ then
chmod 700 $HomePath/.ssh
if [ -e $HomePath/.ssh/authorized_keys ]
then
echo "--- Removing $HomePath/.ssh/authorized_keys ..."
echo "--- Renaming $HomePath/.ssh/authorized_keys to authorized_keys.backup ..."
mv $HomePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys.backup
fi
echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..."