1. 초반에 삽질을 통한 느낌을 정리 및 기록하고자 포스팅함.
  2. 준비물 :
    • putty 설치
    • .ppk 파일 혹은 .pem파일 (맥에서는 .ppk 파일을 .pem파일로 변환해야함 - 아래에 기술)
    • 접근하려는 IP 정보.

시작

$ brew install putty

만약, brew가 설치되어 있지 않다면, brew를 먼저 설치 후 putty 설치

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ puttygen [file name].ppk -O private-openssh -o [file name].pem
$ chmod 700 [fime name].pem
$ ssh -i [file name].pem ubuntu@아이피

단일 파일 전송

$ scp -i [pem file name] [업로드할 파일이름] [user id]@[아이피]:~/
$ scp -i example.pem example.py ubuntu@100.1.1.1:~/

폴더 째로 전송

$ scp -i [pem file name] -r [업로드할 폴더이름] [user id]@[아이피]:~/
$ scp -i example.pem example ubuntu@100.1.1.1:~/