<aside> 💡

IAM엔 admin 권한 줬고 EIP 연결해야함.

</aside>

image.png

#!/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