If migration with SSH is required – you may make use of scp.
scp stands for secure cp (copy), that means that the files can be copied across ssh connection that will be encrypted, and therefore secured.
Here’s the way that you can copy files from or to a remote server. Besides, it allows to even copy files across two remote servers).

 scp [[user@]from-host:]source-file [[user@]to-host:][destination-file]