Skip to content

Instantly share code, notes, and snippets.

@fmartins-andre
Last active December 28, 2023 13:04
Show Gist options
  • Save fmartins-andre/532faaad71ace2af6f396f176adee5de to your computer and use it in GitHub Desktop.
Save fmartins-andre/532faaad71ace2af6f396f176adee5de to your computer and use it in GitHub Desktop.
How to enable rsync through ssh on a Windows machine

How to enable rsync through ssh on a Windows machine

  1. To install the OpenSSH on the Windows machine, follow these tutorials:

  2. Install Git Bash on the Windows machine:

  3. Configure the Windows machine to use Git Bash as default shell to SSH connections:

  4. Install the rsync package on the Git Bash:

  5. To avoid the need for passwords on these connections, configure the SSH to make the authentication through public key certificate.

    • https://www.ssh.com/ssh/copy-id
    • On the source machine, copy the SSH key to the Windows machine: ssh -i ~/.ssh/mykey user@host.
    • If necessery, create the SSH keys: ssh-keygen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment