I just set up one local repo and one remote server repo (accessible via SSH) that are synced with each other. However, when I add a file to the local repo it never appears on the remote repo. From the log:
(scanning...) [2016-01-18 14:55:26.566983] Watcher: Performing startup scan
[2016-01-18 14:55:26.584387] Committer: Committing changes to git
(recording state in git...)
(started...)
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at /SourceCache/rsync/rsync-45/rsync/io.c(453) [sender=2.6.9]
rsync failed -- run git annex again to resume file transfer
[2016-01-18 14:55:30.429824] main: Syncing with lacieannex
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream
rsync failed -- run git annex again to resume file transfer
(code 12) at /SourceCache/rsync/rsync-45/rsync/io.c(453) [sender=2.6.9]
I suspect there is something with the ssh authentication. I tried to remove all keys from my known_hosts that was related to the server (a handful since I had accessed it at server.local, server.lan, 192.168.1.3, fqdn:2222 etc). My plan was to re-run the setup screen where you enter the details about the remote server, including your username and password, but that step seems unavailable after the initial setup.
How do I fix the issues above?
The remote server is rejecting your ssh key to log into it.
If you used the web app to set this up, it will have generated a ssh key just for this server, and put it in
~/.ssh/git-annex/
on the client.You need to check your
~/.ssh/authorized_keys
file on the server and make sure that the ssh key is listed in it. Checking the server's ssh log file may also help track down why it's rejecting the login.In fact, I have 2x2 keys on my local machine
key.git-annex-fqdn-db_2222_db.2Fannex key.git-annex-fqdn-db_2222_db.2Fannex.pub key.git-annex-fqdn-db_22_annex key.git-annex-fqdn-db_22_annex.pub
Why duplicates? The "public 2222" key is in my ~/.ssh/authorized_keys but not the "public 22"-key.