Current Position:Home > [SOLVED] How to rsync with sudo needed to a destination in LAN

[SOLVED] How to rsync with sudo needed to a destination in LAN

Update:11-30Source: network consolidation
Advertisement
I need to do a full backup as demonstrated here but the destination is another machine on my LAN, I already did many rsync operations without password needed over LAN but I never needed sudo rsync before. Now this full backup operation clearly requires root so I added my source root key into the destination's ~/.ssh/authorized_keys, as this method worked well when I needed to rsync without password from my [email protected] to [email protected] Now what appears when I use sudo rsync....
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
c1:bc:80:c2:1e:40:61:f0:4f:b2:70:68:6b:c5:de:04.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:1
ECDSA host key for 192.168.1.2 has changed and you have requested strict checking.
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]
What should I do?
Last edited by miktore (2014-08-16 15:51:43)

The Best Answer

Advertisement
miktore wrote:What should I do?
Well, I would assume that since you have a fingerprint listed (c1:bc:80:c2:1e:40:61:f0:4f:b2:70:68:6b:c5:de:04), you should check your key.
  • [SOLVED] How to rsync with sudo needed to a destination in LAN Update:11-30

    I need to do a full backup as demonstrated here but the destination is another machine on my LAN, I already did many rsync operations without password needed over LAN but I never needed sudo rsync before. Now this full backup operation clearly requir

  • Remote rsync via sudo only works temporarily after touching or opening /etc/sudoers Update:11-30

    Hi, We are running an rsync backup of an OS X 10.9.1 Server from a Linux server via cron.  Root is not enabled on the OS X server and the password for the admin user is handled via keys ala: http://www.linuxproblem.org/art_9.html .  Rsync on the OS X

  • [Solved] Some problems.. (cron, sudo, mount, mpd) Update:11-30

    Hello all, glad to be back with archlinux again :) A few errors I encountered though that I would like some help with: I have this script here: $ ls /etc/cron.hourly/ totalt 4,0K -rw-r--r-- 1 root root 34 2 dec 03.44 pacman.hourly.sh $ cat /etc/cron.

  • [SOLVED] Really need to install sudo to makepkg? Update:10-11

    Hi! Been using dwm for a couple of weeks, compiling it every time I made changes with no issues. Today, while trying to do it again, I am prompt to type a password: root pasword is not accepted, and If I type my own password, it says I am not (logica

  • [SOLVED] bash help: rsync only if device mounted Update:10-11

    Hi, First bash-script here - the tldp.org-guide has gotten me somewhere already, but the final condition 'if rsync...' seems to fail and I don't know why. The script checks if the location to backup the files to is a mountpoint. If not, the script sh

  • [Solved] Only root (or using sudo) can start wbar 2.3.4-1 Update:10-11

    Since the update from 2.3.0-1 to 2.3.4-1 wbar can only be started using either the root account or starting it with sudo. Due to this its (normal user) config file is ignored. I have taken a peek at the wbar site and seen that there have been newer v

  • [SOLVED] Poweroff and Reboot without Sudo Update:12-09

    How can I Poweroff and Reboot my system without using sudo? Last edited by aldoiljazi (2013-09-18 06:52:28)Stebalien wrote: @karol: systemd assumes that anyone with console access can shutdown/reboot the computer anyway (as they are sitting at the co

  • [Solved] diff vs rsync Update:11-30

    I have two folders, on different machines, with the same content. One of the machines has access to both folders, through an sshfs mount. The filesystem is the same on both machines: ext4. Running diff -ur a/ b/ yields no output: i.e. the folders' co

  • [SOLVED] Run X11 apps using sudo while following wiki Update:11-30

    i was going through the wiki https://wiki.archlinux.org/index.php/Su - using_sudo added the line. Defaults env_keep += "HOME" [[email protected] ~]$ sudo visudo visudo: >>> /etc/sudoers: syntax error near line 94 <<< What now? Options

  • [SOLVED]differences between kdesu and sudo? Update:11-30

    so I recently installed Arch Linux and I have KDE installed. I noticed it comes with kdesu, and i was wondering what the difference is between that and just regular sudo. One thing I noticed (not sure if this is intended or just buggy on my computer,