sudo nano /etc/hosts[ip주소] [별칭]입력ctrl + o, y, Enterls -l ~/.ssh/[키파일이름].pemmkdir -p ~/.sshnano ~/.ssh/[키파일이름].pemctrl + x, y, Enter-rw-------
chmod 600 ~/.ssh/[키파일이름].pemssh -i ~/.ssh/[키파일이름].pem [ip주소 별칭][유저이름]@[ip주소 별칭]:~$Ctrl + D환경
/data/[파일이름]/www./src/main/resources/static/*scp로 파일 업로드
# 파일 하나 업로드
scp -i ~/.ssh/[키파일이름].pem
./src/main/resources/static/*
ubuntu@[ip주소]:/data/[파일이름]/www/
# 파일 여러개 업로드
scp -i ~/.ssh/[키파일이름].pem -r \\
./src/main/resources/static/img \\
./src/main/resources/static/js \\
./src/main/resources/static/index.html \\
ubuntu@[ip주소]:/data/[파일이름]/www/
# 한줄
scp -i ~/.ssh/[키파일이름].pem -r ./src/main/resources/static/img ./src/main/resources/static/js ./src/main/resources/static/index.html ubuntu@[ip 주소]:/data/[파일이름]/www/
확인
브릿지 페이지 개발 서버 웹 주소
http://[ip주소]/index.html
403 Forbidden 오류 발생 시
chmod 644 /data/[파일이름]/www/test.html# 로컬 머신에서 원격 서버로 SSH 접속
ssh -i ~/.ssh/[키파일이름].pem [유저]@[별칭]
# SSH 키 파일의 권한과 소유자 정보 확인
ls -l ~/.ssh/[키파일이름].pem