How to copy files from one server to another using SSH

subject: Shell · date: 2017-12-09

  • To copy files from B to A while logged into A:

    $ scp username@b:/path/to/file /path/to/destination
    
  • To copy files from B to A while logged into B:

    $ scp /path/to/file username@a:/path/to/destination
    

read more

share this article