Jun Hyuk Kim's Blog
[SSH] Transfering files between servers 본문
SCP, or secure copy, is used in linux to copy files from one loaction to another securly. Using the key of the other server we can connect the two using scp and send(copy) files. A password can be used but most of the times a key file is used to determine its validity.
This file transfer was used to transfer a file crawled in a AWS EC2 server to another server.
Copy a file to another server
scp -i key_folder/key_name transfer_file_folder/transfer_file username@server_ip:destination_folder
Copy a folder to another server
scp -i key_folder/key_name -r transfer_file_folder username@server_ip:destination_folder
'Coding Explanation' 카테고리의 다른 글
| [Backend] CORS (0) | 2023.08.06 |
|---|---|
| About printing string formats in python (0) | 2023.03.08 |
| About testing and printing (0) | 2022.12.20 |