Linux, Linux

How to SCP copy to and from a remote server

Written by Ian Carnaghan · 9 sec read >

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 .

 

Last Updated On January 18, 2019
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. In my spare time I teach undergraduate classes in web development. Profile

Leave a Reply

avatar
  Subscribe  
Notify of