Skip to content

BuildItLinux

  • Debian
  • elementary
  • Fedora
  • Linux
  • Manjaro
  • Mint
  • MX Linux
  • Pop!_OS
  • Random
  • Ubuntu
  • Web Hosting
  • VMs
  • Debian
  • elementary
  • Fedora
  • Linux
  • Manjaro
  • Mint
  • MX Linux
  • Pop!_OS
  • Random
  • Ubuntu
  • Web Hosting
  • VMs
Linux

Using ssh key with rsync

BuildItLinuxby BuildItLinuxJanuary 31, 2021

When your trying to use rsync and you need to send a SSH key, the how do you do it? Really simple:

rsync -Pav -e "ssh -i /dir/to/ssh/key" username@hostname:/start/dir/ /end/dir/

Of course you will need to setup the rsync command to your needs and directories for everything. The part that tells rsync to use a ssh key is this:

-e "ssh -i /dir/to/ssh/key"

If done properly, it should now connect now.

Taggedid_rsa key ssh rsynclinuxrsyncrsync ssh keyssh key with rsync

Post navigation

Previous Post Previous post:
How to install Ubuntu 20.04.1 LTS
Next Post Next post:
How to install Pop!_OS 20.10

BuildItLinux

View all posts by BuildItLinux →

You might also like

Change varnish port with systemd on Fedora

February 8, 2021February 8, 2021

My most commonly used Linux commands

April 24, 2025April 24, 2025

Adding user, changing home directory, adding to group

February 8, 2021

Leave a Reply Cancel reply

You must be logged in to post a comment.

Latest Posts

My most commonly used Linux commands

April 24, 2025April 24, 2025

Switching from Gmail to ProtonMail

February 12, 2021

How to change your hostname in Fedora 33

February 12, 2021February 12, 2021

Using AWS API to start and stop EC2 instances

February 12, 2021February 12, 2021
how to install manjaro 20.2.1 xfce

How to install Manjaro 20.2.1 XFCE

February 11, 2021February 11, 2021


Categories

  • Debian
  • elementary
  • Fedora
  • Linux
  • Manjaro
  • Mint
  • Pop!_OS
  • Random
  • Ubuntu
  • VMs
  • Web Hosting


Acronis True Image 2021


Ridepanda Ebike Collection page for electric bicycles 125x125


Popular Domains for just 99 Cents at Namecheap!

Copyright 2021, All Rights Reserved. Active Web Investors, LLC - Powered by WordPress and Bam.