본문 바로가기

앱개발

Aws ssh login, copy

1. ssh 로그인

ssh -i [pem키(경로포함)] ec2-user@ip[주소]
ex) ssh -i /Users/home/key.pem ec2-user@127.10.10.1

 

2. ec2 파일 다운 및 업로드

#Send file from Local to Server
scp -i [pem키] [파일] ec2-user@[ip]:[위치]
ex) scp -i /Users/home/key.pem file.txt ec2-user@127.10.10.1:/home/app

#Download file from Server to Local:
scp -i [pem키] ec2-user@[ip]:[파일] [다운위치]
ex) scp -i /Users/home/key.pem ec2-user@127.10.10.1:/home/app/file.txt /Users/home

'앱개발' 카테고리의 다른 글

Aws git, java 설치  (0) 2025.01.13
flutter_inappwebview Ambiguous use of 'evaluateJavaScript(_:completionHandler)'  (0) 2024.09.30
xcode 16 기능정리  (0) 2024.09.10
SimpleWallet  (0) 2022.10.04
SimpleWeather  (0) 2019.01.29