How to copy files to remote server through SSH Tunnel using ngrok and rsync (quick-note)

Diego Carrasco Gubernatis - Dec 10 '22 - - Dev Community
rsync -av -e "ssh user@0.tcp.eu.ngrok.io -p port" path_from_copy :path_to_copy --progress

Enter fullscreen mode Exit fullscreen mode

Important: don’t forget the : before the second path.

In case you want to Watch the destination folder size in real time, open another terminal windows, ssh to the server, cd to the folder in question and type:

watch "du -h --max-depth=1"

Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .