Launch Aws instance
make instance in aws console
make secret key 저장 후 특정 폴더에 보관한다. 나의 경우는
~/.ssh/security/하위의 프로젝트명 아래 보관한다.change auth of secret key file
chmod 400 my-key-pair.pem- access to aws server
# Put your aws server ssh -i ~/path/to/my-key-pair.pem ubuntu@ec2-52-79-127-105.ap-northeast-2.compute.amazonaws.com - (optional) Make alias 매번 명령어를 치고 들어가기 귀찮으니,
~/.zshrc(혹은~/.bashrc,~/.bashprofile)에 alias를 설정해준다. ```open zshrc
vim ~/.zshrc
make alias for aws instance
aliasname에 원하는 alias 명을 입력
alias aliasname=’ssh -i ~/.ssh/security/my-key-pair.pem ubuntu@ec2-52-79-127-105.ap-northeast-2.compute.amazonaws.com’ ```
'tools > aws' 카테고리의 다른 글
| AWS : dump mysql rds to local mysql (0) | 2018.04.21 |
|---|---|
| AWS : copy file from aws ec2 to local (0) | 2018.04.20 |
| copy aws instance to other ec2 account (0) | 2017.12.10 |
| AWS cli 설치 및 s3 업로드, 다운로드하기 (0) | 2017.12.07 |
| AWS IAM으로 사용자 만들기 (0) | 2017.11.14 |