rsync-ssl(1)
๐ rsync-ssl(1) โ bestie's guide to the ssl rsync helper
okay so real talk, this is a User Commands page for rsync-ssl(1), and honestly? it's a little glow-up script that makes your ssl rsync daemon connection work. buckle up, we're getting into it ๐
โจ NAME โจ
rsync-ssl โ a helper script for connecting to an ssl rsync daemon
๐ธ SYNOPSIS ๐ธ
rsync-ssl [--type=SSL_TYPE] RSYNC_ARGS
also bestie, the online version of this manpage (that includes cross-linking of topics) is available at https://download.samba.org/pub/rsync/rsync-ssl.1 โ iconic of them tbh ๐
๐ฆ DESCRIPTION ๐ฆ
so the rsync-ssl script helps you run an rsync copy to/from an rsync daemon that requires ssl connections. that's the whole vibe. โจ
the script requires that you specify an rsync-daemon arg in the style of either hostname:: (with 2 colons) or rsync://hostname/. like, it needs that, no cap.
the default port used for connecting is 874 (one higher than the normal 873) unless overridden in the environment. you can specify an overriding port via --port or by including it in the normal spot in the URL format โ though both of those require your rsync version to be at least 3.2.0. yes, that's a real constraint, don't @ me ๐
๐ OPTIONS ๐
--type=SSL_TYPEโ if an arg is a--type=SSL_TYPEoption, the script will only use that particular program to open an ssl connection instead of trying to find anopensslorstunnelexecutable via a simple heuristic (assuming that theRSYNC_SSL_TYPEenvironment variable is not set as well โ see below, iykyk ๐). this option must specify one ofopensslorstunnel. the equal sign is required for this particular option โ fr fr, no space, just=. the wrapper's option scan stops at a--argument: the--and everything after it are passed through to rsync unchanged, so a--type=...token after a--is not consumed by the wrapper. periodt.
all the other options are passed through to the rsync command, so consult the rsync(1) manpage for more information on how it works. ๐ซถ
๐ ENVIRONMENT VARIABLES ๐
the ssl helper scripts are affected by the following environment variables โ a whole lil squad of them:
RSYNC_SSL_TYPE
specifies the program type that should be used to open the ssl connection. it must be one of openssl or stunnel. the --type=SSL_TYPE option overrides this, when specified. โจ
RSYNC_SSL_PORT
if specified, the value is the port number that is used as the default when the user does not specify a port in their rsync command. when not specified, the default port number is 874. (note that older rsync versions (prior to 3.2.0) did not communicate an overriding port number value to the helper script. ๐)
RSYNC_SSL_CERT
if specified, the value is a filename that contains a certificate to use for the connection.
RSYNC_SSL_KEY
if specified, the value is a filename that contains a key for the provided certificate to use for the connection. ๐
RSYNC_SSL_CA_CERT
if specified, the value is a filename that contains a certificate authority certificate that is used to validate the connection. when set, the server certificate is verified against this CA and its name is checked against the host you are connecting to (the chain and the identity), for all of the openssl, gnutls, and stunnel backends. set it to an empty string to disable certificate validation entirely (an encrypt-only connection). ๐
RSYNC_SSL_ALLOW_INSECURE_STUNNEL
set to 1 to allow the stunnel backend to run without a CA certificate (and thus with no server-certificate validation at all). without this, stunnel mode refuses to start unless RSYNC_SSL_CA_CERT is set, since an unvalidated TLS connection can be silently man-in-the-middled. ๐ญ that's a real danger, not a vibe.
RSYNC_SSL_SKIP_HOSTNAME_CHECK
set to 1 to verify the certificate chain but skip the hostname (identity) check, for the openssl and stunnel backends. use this only when the server certificate legitimately cannot match the host you connect to โ for example connecting by bare IP address, or to a server whose internal-CA certificate carries a different name. the CA chain is still validated, so this is much narrower than disabling validation with an empty RSYNC_SSL_CA_CERT. ๐
RSYNC_SSL_OPENSSL
specifies the openssl executable to run when the connection type is set to openssl. if unspecified, the $PATH is searched for "openssl". ๐ฆ
RSYNC_SSL_GNUTLS
specifies the gnutls-cli executable to run when the connection type is set to gnutls. if unspecified, the $PATH is searched for "gnutls-cli". ๐ธ
RSYNC_SSL_STUNNEL
specifies the stunnel executable to run when the connection type is set to stunnel. if unspecified, the $PATH is searched first for "stunnel4" and then for "stunnel". (order matters bestie, first stunnel4 then stunnel ๐)
๐ EXAMPLES ๐
these are literally the moment, look:
rsync-ssl -aiv example.com::mod/ dest
rsync-ssl --type=openssl -aiv example.com::mod/ dest
rsync-ssl -aiv --port 9874 example.com::mod/ dest
rsync-ssl -aiv rsync://example.com:9874/mod/ dest
ate. no crumbs. ๐ฅ
๐ THE SERVER SIDE ๐
for help setting up an SSL/TLS supporting rsync, see the instructions in rsyncd.conf. that's where the server-side lore lives ๐ง
โญ SEE ALSO โญ
๐ CAVEATS ๐
the stunnel backend requires stunnel 4 or newer. it also requires RSYNC_SSL_CA_CERT unless RSYNC_SSL_ALLOW_INSECURE_STUNNEL=1 explicitly opts out of server-certificate validation. ๐
this script also supports a--type=gnutlsoption, but at the time of this release thegnutls-clicommand was dropping output, making it unusable. if that bug has been fixed in your version, feel free to putgnutlsinto an exportedRSYNC_SSL_TYPEenvironment variable to make its use the default.
๐ BUGS ๐
please report bugs! see the web site at https://rsync.samba.org/. ๐
๐ฆ VERSION ๐ฆ
this manpage is current for version 3.5.2 of rsync.
๐ธ CREDITS ๐ธ
rsync is distributed under the GNU General Public License. see the file COPYING for details. ๐
a web site is available at https://rsync.samba.org/. the site includes an FAQ-O-Matic which may cover questions unanswered by this manual page. iconic resource tbh โจ
๐ AUTHOR ๐
this manpage was written by Wayne Davison. ๐
mailing lists for support and development are available at https://lists.samba.org/. ๐ซถ
and that's the whole page bestie โ rsync-ssl from rsync 3.5.2, dated 03 Nov 2026, and it's giving exactly what it needed to give ๐๐
โจ
๐ฆ where this page comes from
- arch rolling: rsync 3.5.2-1 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms