Skip to content

SSH & remote ​

Put a user@host:/path on either side of a task and lazyrsync runs it over SSH. Remote source downloads; remote destination uploads.

A quick transfer offers the same three options in its popup once the destination looks remote.

The --rsh builder ​

Press s on a remote task to set SSH options, which build up the --rsh=ssh … argument:

  • SSH key file → -i <keyfile>
  • SSH port → -p <port> (dropped at the default 22)
  • SSH extra → anything else, e.g. -o ConnectTimeout=5

Auth ​

Remote transfers use key-based auth or an ssh-agent. Every task runs ssh with -o BatchMode=yes, so a host that would prompt for a password fails fast.

When it can't connect ​

Before rsync is spawned, lazyrsync checks the connection with ssh -o BatchMode=yes -o ConnectTimeout=5 … true and reports what ssh itself said:

error: cannot reach aminya-t7 over ssh: Permission denied (publickey).
error: cannot reach 10.0.0.9 over ssh: Connection timed out

The check runs without a prompt and gives up after five seconds. Set your own -o ConnectTimeout=N in SSH extra to change that.

Headless runs report the same cause and keep their exit code of 3 for a task that could not start.

No agent under cron

BatchMode=yes is what keeps a scheduled run from hanging forever on a password prompt — but cron has no ssh-agent to fall back on. Use a passwordless key, or set the task's SSH key file so it doesn't depend on one.

Port validation

An out-of-range port (0, 70000, …) turns the field red and won't save on <enter>. Leave it empty for the default 22.

Released under the MIT License.