add add authrized key script for baston.dev

This commit is contained in:
exhsgahm
2022-10-31 15:38:15 +09:00
parent 4236a8aee5
commit 18ee2485cd
15 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/sh
rm ./authorized_keys
for FILE in `ls ../pub_keys/*.pub`
do
echo "$FILE"
cat "$FILE" >> authorized_keys
done
scp authorized_keys ubuntu@bastion.dev.kr.datasaker.io:/home/ubuntu/.ssh/