[LINUX] Extract files from EC2 storage with the scp command

Described as a memorandum

Run pwd on the server, check the directory or file you want to copy, and copy and paste

$ pwd
> /home/ubuntu/directory/to/folder

Go back to local and run scp with ssh connection

$ pwd
>Check the directory you want to paste, this time copy and paste to the desktop
> /Users/username/desktop

$ scp -i ~/.ssh/filename.pem -r [email protected]:/home/ubuntu/directory/to/folder /Users/username/desktop

Note that if you write the local directory and the part under ubuntu @ in reverse, the local folder will be uploaded to the server! !! !! !!

Recommended Posts

Extract files from EC2 storage with the scp command
Extract the table of image files with OneDrive & Python
Search for large files on Linux from the command line
[Scp] Copy files locally from Linux server with Tera Term ssh scp
Extract the xz file with python
Extract the maximum value with pandas.
[EC2] How to install and download chromedriver from the command line
Install the data files with setup.py
Using cgo with the go command
Hit the top command with htop
(For lawyers) Extract the behavior of Office software from .evtx files
Extract strings from files in Python
Extract lines that match the conditions from a text file with python
Extract the TOP command result with USER and output it as CSV
Ask for Pi with the bc command
Save files using EC2 storage without using S3
Play audio files from Python with interrupts
Decrypt files encrypted with openssl from python with openssl
Extract Japanese text from PDF with PDFMiner
Download files on the web with Python
Send files via bastion server with scp
Try rewriting the file with the less command
Get only the source code of the PyPI package with pip from the command line
[Python] Get the files in a folder with Python
Extract text from PowerPoint with Python! (Compatible with tables)
Adjust file permissions with the Linux command chmod
Extract files from RPM file without installing it
Describe ec2 with boto3 and retrieve the value
Extract only complete from the result of Trinity
Rename and move files (directories) with mv command
Extract data from a web page with Python