How to SCP copy to and from a remote server

H

How Can We Help?

How to SCP copy to and from a remote server

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 .

 

About the author

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.

About Author

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.

Follow Me