chmod 400 file_name.pem
pem파일 권한을 부여
ssh -i "file_name.pem" ubuntu@ec2-00-000-00-000.us-west-2.compute.amazonaws.com
ssh프로토콜을 통한 접속명령어 입력해주고 자신의 pem파일을 정확히 기입 운영체제 또는 인스턴스명과 ip주소를 입력
ssh -i "file_name.pem" ubuntu@00.000.00.000
위와같은 방법도 시도해보자
ubuntu@ip-00-000-000-00:~$
접속했을때 터미널에 아래와 같이 표시되면 실행된것이다.
chomd뒤에는 숫자 세개가 나오는데 차례대로 나/그룹/전체에 대한 권한을 의미한다.
권한은 세가지로 read(4), write(2), execute(1) 가 있는데 이 숫자들 합의 조합으로 권한을 나타낸다.
chmod 400의 의미는 4/0/0 이므로 나에게만 읽기 권한이 있도록 하는것이다.
ssh 옵션
출처
https://hyun0k.tistory.com/entry/Linuxchmod%EC%97%90-%EB%8C%80%ED%95%98%EC%97%AC
https://penguingoon.tistory.com/252
https://hippogrammer.tistory.com/157