How to SCP copy to and from a remote server

9 sec read

To copy to a server (replacing 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

Leave a Reply

Notify of