Spaces:
Sleeping
Sleeping
Teammates keys added
Browse files- check_vm.sh +3 -1
check_vm.sh
CHANGED
|
@@ -21,6 +21,7 @@ PUBLIC_KEYS=(
|
|
| 21 |
"$HOME/.ssh/CaseStudy2_16.pub"
|
| 22 |
"$HOME/.ssh/CaseStudy2_16_Keerthi.pub"
|
| 23 |
"$HOME/.ssh/CaseStudy2_16_GG.pub"
|
|
|
|
| 24 |
)
|
| 25 |
|
| 26 |
echo "$(date): Starting cron recovery..." >> "$LOG_FILE"
|
|
@@ -60,7 +61,8 @@ else
|
|
| 60 |
ssh -i "$DEFAULT_KEY" -p $VM_PORT $VM_USER@$VM_HOST "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat > ~/.ssh/authorized_keys <<'EOF'
|
| 61 |
$(cat "$HOME/.ssh/CaseStudy2_16.pub")
|
| 62 |
$(cat "$HOME/.ssh/CaseStudy2_16_Keerthi.pub")
|
| 63 |
-
$(cat "$HOME/.ssh/CaseStudy2_16_GG.pub")
|
|
|
|
| 64 |
|
| 65 |
|
| 66 |
ssh -i "$CUSTOM_KEY" -p $VM_PORT $VM_USER@$VM_HOST 'chmod 600 ~/.ssh/authorized_keys'
|
|
|
|
| 21 |
"$HOME/.ssh/CaseStudy2_16.pub"
|
| 22 |
"$HOME/.ssh/CaseStudy2_16_Keerthi.pub"
|
| 23 |
"$HOME/.ssh/CaseStudy2_16_GG.pub"
|
| 24 |
+
"$HOME/.ssh/CaseStudy2_16_HP.pub"
|
| 25 |
)
|
| 26 |
|
| 27 |
echo "$(date): Starting cron recovery..." >> "$LOG_FILE"
|
|
|
|
| 61 |
ssh -i "$DEFAULT_KEY" -p $VM_PORT $VM_USER@$VM_HOST "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat > ~/.ssh/authorized_keys <<'EOF'
|
| 62 |
$(cat "$HOME/.ssh/CaseStudy2_16.pub")
|
| 63 |
$(cat "$HOME/.ssh/CaseStudy2_16_Keerthi.pub")
|
| 64 |
+
$(cat "$HOME/.ssh/CaseStudy2_16_GG.pub")
|
| 65 |
+
$(cat "$HOME/.ssh/CaseStudy2_16_HP.pub")"
|
| 66 |
|
| 67 |
|
| 68 |
ssh -i "$CUSTOM_KEY" -p $VM_PORT $VM_USER@$VM_HOST 'chmod 600 ~/.ssh/authorized_keys'
|