Currently I have my netbook running git annex and a raspberry pi as a remote storage set up as a git repository. I currently have it set up so that from the terminal i can just do 'ssh pi@mypi -p XXX -C' and it has the password saved. Currently I'm having a problem that any time I add a file to my annex folder on my netbook I have to reenter my password for ssh-askpass for it to upload the file. Once that file is uploaded, it looks to me like it closes the connection and then reopens it and asks for my password again.
I'm looking in ~/.ssh/ and I'm sure that something there needs to be edited or copied, I'm not really sure what though. Any suggestions?
It sounds like you don't have the ssh-agent set up properly in your environment.
Try starting the git annex agent from the command line and see if that helps. If it works then it is a problem with environment variables.
If you set this repository up using the git-annex webapp, and choosing "remote ssh server", it will generate a new ssh key, stored in
~/.ssh/git-annex/
, and it will configure~/.ssh/config
to use this key for a special made-up hostname which is used in the url for the git remote. On the server, it will set up~/.ssh/authorized_keys
to allow this ssh key to connect without a password and run git-annex-shell.I don't know if you used the webapp to set this up. If not, you can try to replicate this setup on your own. If you did and it's not working, you now know where all the peices it sets up are, to figure out what went wrong.