add add authrized key script for baston.dev
This commit is contained in:
11
make_authrized_keys/make_authorized_keys.sh
Normal file
11
make_authrized_keys/make_authorized_keys.sh
Normal 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/
|
||||
Reference in New Issue
Block a user