rsync command can be used to synchronize local content or content (usually directories) between two servers. It is common to use
rsync over SSH for this purpose.
rsync -a --progress USER@FQDN-OF-REMOTE-HOST:/remote_dir/ /local_dir/
rsync -a --progress USER@18.104.22.168:/remote_dir/ /local_dir/
rsync -a --progress /local_dir/ USER@22.214.171.124:/remote_dir/
-a flag is one of the better options to use as it preserves both ownership and permissions. It's also advisable to run this under
tmux for remote hosts in case the SSH connection is severed.