AWC EC2 리눅스 인스턴스 접속 (ELASTIC COMPUTE CLOUD)

in #kr-dev6 years ago

ec2.png

안녕하세요 @doctor.fish 입니다~
오늘은 AWS EC2 리눅스 인스턴스에 접속하는 방벙을 정리하였습니다.

OSX에서 리눅스 인스턴스 접속

Instances/Connect 터미널로 접속 방법

  • A standalone SSH Client
  • pwd (현재 디렉토리 위치)
  • ls -al (현재 디렉토리 위치의 파일 조회)
  • cd Documents (Document 디렉토리로 이동)
  • chmod 400 인스턴스 비밀번호 파일
    (에러시 sudo chmod 400 인스턴스 비밀번호 파일)

  1. Open an SSH Client (터미널 접속)
  2. .pem(인스턴스 비밀번호 파일) 파일 공유 및 사용 권한 소유 계정만 읽기 전용으로 변경(everyone 접근 불가 변경)
  3. ssh -i "aws_password.pem" [email protected]
  • (접속 방식) (전송) (비밀번호) (아이디(다른것이면 ec2-user)@인스턴스 IP)
  • connecting (yes or no)
    접속 해제
  • exit (접속 해제 - 터미널)

WINDOW에서 리눅스 인스턴스 접속

XShell 5 다운로드 (putty 무료)
Instances/Connect

  • 열기, 새로만들기 (이름, 호스트(IP 입력))
  • 사용자 인증 방법(Public Key) (사용자 이름 (ubuntu / ec2-user), 찾아보기/가져오기/인스턴즈 키, 암호 비우기)
  • 연결
  • 알수없는 호스트키 (수락 및 저장)
    접속 해제
  • exit or 프로세스 종료 (접속 해제)
Sort:  

Congratulations @doctor.fish! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes received

Click on any badge to view your own Board of Honor on SteemitBoard.

To support your work, I also upvoted your post!
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

Upvote this notification to help all Steemit users. Learn why here!

Coin Marketplace

STEEM 0.27
TRX 0.13
JST 0.032
BTC 62726.22
ETH 2961.65
USDT 1.00
SBD 3.60