To sync local and remote directories, connect to your system using SSH. Then, use your local machine’s folder as the source, like ~/source. Use the remote system address and directory as the target, such as host@123.123.12.12:~/dest/