Search
Share
connect_private_ec2_instance.sh
#!/bin/bash # 변수 설정 key_file=
"/home/ec2-user/deploy-test.pem"
username=
"ec2-user"
internal_ec2_ip=
"172.31.22.18"
# SSH 접속 명령 실행 ssh -i
"$key_file"
"$username@$internal_ec2_ip"
"$@"
JSON
복사