Computer/Docker, Linux

[RunPod] Use scp on RunPod (Eng)

klue 2024. 5. 1. 10:19
반응형

Update : 2024.05.01

Content : The method of using scp on RunPod to download or upload data.

 

Reference : https://docs.runpod.io/pods/storage/transfer-files-with-scp

 

Transfer files with SCP | RunPod Documentation

Prerequisites

docs.runpod.io

 

1. Run your pod.

2. Run terminal of your own laptop which is connected with RunPod.

3. Use the below script in your terminal.

    The first path is the file path which is wanted to download and the second path is the donwload path.

# file download
scp -P PORT_NUM -i ~/.ssh/id_ed25519 root@DOMAIN:FILE_PATH DOWNLOAD_PATH (YOUR COMPUTER PATH)

# folder download
scp -P PORT_NUM -i ~/.ssh/id_ed25519 -r root@DOMAIN:FILE_PATH DOWNLOAD_PATH (YOUR COMPUTER PATH)

# file upload
scp -P PORT_NUM -i ~/.ssh/id_ed25519 FILE_PATH (YOUR COMPUTER PATH) root@DOMAIN:DESTINATION_PATH

# example (folder download)
scp -P 13111 -i ~/.ssh/id_ed25519 -r root@123.141.122.13:/workspace/TensorRT-LLM/examples/gemma/NSYS1 C:\Users\klue\download
반응형