Browse Source

Update insert_authorized_keys.sh

master
Drew Short 6 years ago
parent
commit
32a7eb03c5
  1. 2
      insert_authorized_keys.sh

2
insert_authorized_keys.sh

@ -6,4 +6,4 @@ set -x
mkdir -p "$HOME/.ssh"
for f in *.pub; do (printf %s "$(< ${f})"; echo); done >> "$HOME/.ssh/authorized_keys"
cp "$HOME/.ssh/authorized_keys" "$HOME/.ssh/authorized_keys.bak"
sort "$HOME/.ssh/authorized_keys" | uniq | tee "$HOME/.ssh/authorized_keys"
sort "$HOME/.ssh/authorized_keys.bak" | uniq | tee "$HOME/.ssh/authorized_keys"
Loading…
Cancel
Save