Brandon Keepers wrote:
When I try to run duplicity 0.4.4.RC1 to back up my mac, I get
this error:
Host key authenticity could not be verified (missing known_hosts
entry?)
Running 'sftp address@hidden' failed (attempt #1)
It will retry 5 times and give up. Here are the options I'm
passing to
duplicity:
sudo duplicity --allow-source-mismatch \
--encrypt-key $GPG_KEY --sign-key $GPG_KEY \
--exclude-device-files --exclude-other-filesystems \
--exclude-globbing-filelist /etc/duplicity_excludes.txt \
/ scp://address@hidden/backups
I have an SSH key set up so I don't need a password to log into my
server, and I'm able to just run the sftp command:
$ sftp address@hidden
Connecting to 192.168.0.254...
sftp>
Any ideas?
D'oh! (like Homer Simpson)
I missed the fact that in the first case you are doing sudo and in the
second you are doing it as a normal use. It won't work that way.
Root
is its own user. You need to either set up root as a key on the
remote,
or in /root/.ssh/ add a 'config' file with the following lines.
IdentityFile /home/user/.ssh/id_rsa
IdentityFile /home/user/.ssh/id_dsa
where 'user' is your user name.
You may also use "--ssh-options="-oIdentityFile=/home/user/.ssh/
id_rsa"
on the duplicity command line.