copy from remote to local via ssh code example
Example 1: copy ssh key to remote server
ssh-copy-id -i ~/.ssh/mykey.pub user@host
Example 2: ssh copy folder from local to remote
scp -ra /path/to/local/storage [email protected]:/path/to/copy
ssh-copy-id -i ~/.ssh/mykey.pub user@host
scp -ra /path/to/local/storage [email protected]:/path/to/copy