Skip to content

Commit

Permalink
create .ssh directory if it doesn't exist before adding authorized_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightXiaoHan committed Feb 22, 2025
1 parent 1c1c158 commit 44bc628
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ else
exit 1
fi

mkdir -p ~/.ssh
# add authorized_keys into .ssh/authorized_keys
if [ ! -f ~/.ssh/authorized_keys ]; then
touch ~/.ssh/authorized_keys
Expand Down

0 comments on commit 44bc628

Please sign in to comment.