반응형
AWS Gamelift - instance ssh 접속 방법
■ 수동으로 진행할 경우
AWS 연동
aws configure
instance id 및 ip 확인
aws gamelift describe-instances --fleet-id "${fleetid}"
aws gamelift get-instance-access \
--fleet-id "${fleetid}" \
--instance-id "${instanceid}" \
--query 'InstanceAccess.Credentials.Secret' \
--output text > MyPrivateKey.pem
인증키 권한 설정
chmod 400 MyPrivateKey.pem
접속을 위한 22 port 허용
aws gamelift update-fleet-port-settings \
--fleet-id "${fleetid}" \
--inbound-permission-authorizations FromPort=22,ToPort=22,IpRange=0.0.0.0/0,Protocol=TCP
접속
ssh -i MyPrivateKey.pem gl-user-remote@"${ip}"
■ Reference
내용 | URL | |
원격으로 접속 방법 | https://docs.aws.amazon.com/ko_kr/gamelift/latest/developerguide/fleets-remote-access.html | |
- | - |
by mkdir-chandler
728x90
반응형
'Ops > AWS' 카테고리의 다른 글
AWS Gamelift - role 설정 (0) | 2023.08.09 |
---|---|
AWS Gamelift - instance ssh 접속 code (bash) (0) | 2023.08.06 |
AWS Gamelift - build upload script (bash) (0) | 2023.08.04 |
AWS Gamelift - build upload script (powershell) (0) | 2023.07.30 |
AWS Gamelift - autoscaling script code (bash) (0) | 2023.07.29 |