목차
반응형
I used the scp command primarily in the following cases:
- When download the files from the AWS EC2 instance to my local environment.
- Download the files from the Ubuntu Server(Not AWS EC2) to my local environment.
1. Download the files from the AWS EC2 instance to my local environment.
- In my local environment, go to the folder in which *.pem or *.ppk file exists, then enter the below command:
- Enter my ec2 public ip address
1-1. Download only one file
scp -i [your pem file] ubuntu@[ec2 public ip]:/home/ubuntu/gt-3/logs/jcodelib.log ~/Desktop/logs/
1-2. Download several files whose filename extensions are the same.
# Use '\*'
scp -i [your pem file] ubuntu@[ec2 public ip]:/home/ubuntu/gt-3/logs/\*.log ~/Desktop/logs/
# Use only '*' is not working
scp -i [your pem file] ubuntu@[ec2 public ip]:/home/ubuntu/gt-3/logs/*.log ~/Desktop/logs/
2. Download the files from the Ubuntu Server(Not AWS EC2) to my local environment.
반응형
반응형
I used the scp command primarily in the following cases:
- When download the files from the AWS EC2 instance to my local environment.
- Download the files from the Ubuntu Server(Not AWS EC2) to my local environment.
1. Download the files from the AWS EC2 instance to my local environment.
- In my local environment, go to the folder in which *.pem or *.ppk file exists, then enter the below command:
- Enter my ec2 public ip address
1-1. Download only one file
scp -i [your pem file] ubuntu@[ec2 public ip]:/home/ubuntu/gt-3/logs/jcodelib.log ~/Desktop/logs/
1-2. Download several files whose filename extensions are the same.
# Use '\*'
scp -i [your pem file] ubuntu@[ec2 public ip]:/home/ubuntu/gt-3/logs/\*.log ~/Desktop/logs/
# Use only '*' is not working
scp -i [your pem file] ubuntu@[ec2 public ip]:/home/ubuntu/gt-3/logs/*.log ~/Desktop/logs/
2. Download the files from the Ubuntu Server(Not AWS EC2) to my local environment.
반응형