rsync is a utility for transferring and synchronising files between a computer and a storage drive and across networked computers by delta-transfer algorithm (using modification time and size by default, or checksums with the --checksum option). It is commonly found on Unix-like operating systems and is under the GPL-3.0-or-later license.

rsync -avz source_dir/your_file.txt user@server_ip:target_dir/

How rsync works with SSH

Unlike ssh accesses config file to find user private key for signing challenge, rsync uses a different way.