DEV Community

Diego Carrasco Gubernatis
Diego Carrasco Gubernatis

Posted on • Originally published at diegocarrasco.com on

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

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

Top comments (0)