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.

  • no go

    Two friends of mine were pretty enthusiastic about the Go language, so I tried writing a program in it yesterday. It is frustrating because despite…

  • playing with vala

    I actually was toying with making something like Vala back in college. It's pretty cute. Much like using the sane subset of C++, as you write code…

  • chromium.el

    This weekend I wrote some Emacs Lisp to write some utility functions I find useful for hacking on Chromium. It's fun to have a reason to use Lisp!…

  • 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.