EC2 > AWS Marketplace > lamp로 검색
lamp (Linux, Apache, Mysql, php)
login as: ubuntu 를 입력
1. .bashrc 파일을 수정한다.
ssha()를 추가한다.
$ vi .bashrc
#. bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
ssha() {
ssh -i sss.pem ec2-user@"$1"
}
2. EC2서버의 공인 IP 인 EIP를 확인한다.
3. ssha 명령어로 서버에 접속한다.
$ ssha 13.124.105.236
The authenticity of host '13.124.105.236 (13.124.105.236)' can't be established.
RSA key fingerprint is 1a:35:bb:47:b3:fe:cf:f4:8 c:89:38:61:b0:4 d:c1:a2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '13.124.105.236' (RSA) to the list of known hosts.
Last login: Mon Jul 15 06:00:01 2019 from 210.116.123.25
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
No packages needed for security; 6 packages available
Run "sudo yum update" to apply all updat
[ec2-user@ip-172-31-6-164 ~]$
참고 1.
나의 공인 IP 확인하는 명령어
curl checkip.amazonaws.com
참고 2.
putty download
감사합니다.