darcs ssh problem

While trying to set up a remote darcs server (accessed via ssh), I ran into a strange problem. Here’s the error I got:

me@toy:~/buffaloplay$ ssh-agent darcs get remote_me@technofetish.net:buffaloplay/
remote_me@technofetish.net’s password:
remote_me@technofetish.net’s password:

darcs failed: (sftp) failed to fetch files.
source directory: buffaloplay/_darcs/patches
source files:
sftp output:
Permission denied (publickey,gssapi-with-mic,password).
Couldn’t read packet: Connection reset by peer

Looking around a bit online, it seems that I’m not the first one to have this problem but I couldn’t find an obvious workaround. But configuring myself to you ssh-agent fixed the problem, even if it wasn’t exactly the most elegant solution. Here’s the quick guide to setting up ssh agent that I used.

After that darcs worked like a charm.


  1. buffalo says:

    Oh just for the record. Here’s the command I use to save my changes:

    darcs record -am ‘description’

    and here’s the command that updates darcs once I get ssh agent setup:

    ssh-agent darcs push technofe@technofetish.net:buffaloplay/

  2. Benjamin Bernard says:

    the darcs repository is running off of technofetish? Interesting

  3. buffalo says:

    Yeah, sort-of. The neat thing about darcs is that it’s just one tiny little executable that manipluates the file system – there’s no server that runs or anything. So all I had to do to get darcs going on technofetish was just copy the linux binary to my home directory. (I wouldn’t have even needed to do that, to be honest, except to run the darcs cgi)

  4. buffalo says:

    I had some problems with ssh agent and remote desktops. I kept getting the error ‘Could not open a connection to your authentication agent.’

    Here’s the solution:


  5. Issac Maez says:

    Thanks for this post, answers a bunch of questions I was having.

Leave a Reply