How to SCP copy to and from a remote server

No Comments

To copy to a server (replacing 0.0.0.0 with the IP address)

scp -i ~/.ssh/your-private-key.pem /source/file/location [email protected]:/target/file/location

To copy from a server to your local machine within your current . directory

scp -i ~/.ssh/your-private-key.pem [email protected]:acf.sql .

 

Image Credits: Photo by Isis França on Unsplash.

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link