

// Mac/Linux
chmod 400 ~/.ssh/your-key.pem
// Windows
icacls "C:\Users\사용자명\.ssh\your-key.pem" /inheritance:r /grant:r "$env:USERNAME:R"




# Read more about SSH config files: https://linux.die.net/man/5/ssh_config
Host myec2
HostName [EC2 인스턴스의 IP 주소]
User ec2-user
IdentityFile ~/.ssh/ec2_key.pem // 실제 키 파일의 위치
StrictHostKeyChecking accept-new

