Evan Martin (evan) wrote in evan_tech,
Evan Martin

sftp subsystem and tla

Arch uses sftp to mirror repositories. My host has the sftp subsystem turned off. So you get failures like this:
% tla make-archive --mirror martine@danga.com--2004-kitten sftp://danga.com/home/martine/projects/arch/martine@danga.com--2004-kitten
martine@danga.com's password:
Request for subsystem 'sftp' failed on channel 0
Error reading from server

My hacky fix is to edit src/tla/libarch/pfs-sftp.c and change the sftp command line from requesting the sftp subsystem (which for OpenSSH makes the command line include a -s and an sftp after the hostname) to requesting the sftp server directly: remove the -s and make the final argument /usr/lib/sftp-server.

It's a little annoying 'cause I have to rebuild tla every time I use it on a new computer, but it's not so bad as far compared to the slow-motion trainwreck that is most times I try to do something useful with these things.

  • blog moved

    As described elsewhere, I've quit LiveJournal. If you're interested in my continuing posts, you should look at one of these (each contains feed…

  • dremel

    They published a paper on Dremel, my favorite previously-unpublished tool from the Google toolchest. Greg Linden discusses it: "[...] it is capable…

  • treemaps

    I finally wrote up my recent adventures in treemapping, complete with nifty clickable visualizations.

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.