Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions loadtest/aws/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,25 @@ done
if [ -n "$LOGIN_USER" ]; then
mkdir -p /root/.ssh
touch /root/.ssh/authorized_keys
cat "/home/$LOGIN_USER/.ssh/authorized_keys" >> /root/.ssh/authorized_keys
sort -u /root/.ssh/authorized_keys -o /root/.ssh/authorized_keys
# AL2023·Ubuntu 클라우드 이미지는 /root/.ssh/authorized_keys 에 **같은 키를 강제명령 접두**
# (`command="echo 'Please login as the user ...';...exit 142" ssh-rsa ...`)로 이미 넣어 둔다.
# 뒤에 붙이기만 하면 sshd 가 앞 줄(강제명령)을 먼저 매치해 exit 142 로 끊는다 — 추가가 아니라
# 치환이어야 한다(#743, #681). 그 줄만 걷어내고 로그인 사용자의 키를 합친다.
grep -v '^command=' /root/.ssh/authorized_keys > /root/.ssh/authorized_keys.new || true
cat "/home/$LOGIN_USER/.ssh/authorized_keys" >> /root/.ssh/authorized_keys.new
sort -u /root/.ssh/authorized_keys.new -o /root/.ssh/authorized_keys
rm -f /root/.ssh/authorized_keys.new
chmod 700 /root/.ssh
chmod 600 /root/.ssh/authorized_keys
sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config
grep -q '^PermitRootLogin' /etc/ssh/sshd_config || echo 'PermitRootLogin prohibit-password' >> /etc/ssh/sshd_config
systemctl restart sshd 2>/dev/null || systemctl restart ssh 2>/dev/null \
|| echo " ⚠️ sshd 재시작 실패 — 수동으로 확인할 것"
echo " $LOGIN_USER 의 authorized_keys 를 root 로 복사, PermitRootLogin prohibit-password"
if grep -q '^command=' /root/.ssh/authorized_keys; then
echo " 🔴 강제명령 줄이 아직 남아 있다 — root SSH 가 exit 142 로 막힌다 (#743)"
else
echo " $LOGIN_USER 의 authorized_keys 를 root 로 복사(강제명령 줄 제거), PermitRootLogin prohibit-password"
fi
else
echo " ⚠️ ec2-user/ubuntu 의 authorized_keys 를 못 찾았다 — root SSH 는 그대로 막혀 있을 수 있다"
fi
Expand Down
Empty file modified loadtest/results/row-shape-frag-2026-08-24/q2_partition_rig.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion loadtest/seed/seed_pose_data_bulk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# 같은 자릿수)이다 — 내용 다양성이 아니라 행 크기가 목적이라 다양화하지 않는다.
# [[project_synthetic_data_distribution_limit]] 와 같은 한계: 분포 의존 실험엔 못 쓴다.
set -uo pipefail
cd "$(dirname "$0")/.."
cd "$(dirname "$0")/../.." # loadtest/seed/ → 저장소 루트 (.env 가 거기 있다, #683)
set -a; . ./.env; set +a

TARGET_MB=${TARGET_MB:-5120} # 목표 테이블 규모(data+index). 버퍼풀 2,048MB 의 2.5배
Expand Down
Loading