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 .

 

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

More Similar Posts

No results found.

Menu