Copy a file from server A to server B with scp command

Copy from Server A (logged on) to B (destination)

scp /path/server/A/source username@serverB:/path/to/destination

Server B to A

scp username@server:/path/to/file /path/to/local/destination 

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top