<aside> 💡
IAMì—” admin 권한 ì¤¬ê³ EIP 연결해야함.
</aside>

#!/bin/bash
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
echo 'Skills2025$@%!' | passwd --stdin ec2-user
echo 'AuthenticationMethods password,publickey' >> /etc/ssh/sshd_config
sed -i 's/#Port 22/Port 7819/g' /etc/ssh/sshd_config
systemctl restart sshd