evan_tech

Previous Entry Share Next Entry
10:55 pm, 17 Feb 05

gross tla hack part n

I've reported on this before but I ran into it again: danga doesn't have sftp set up so tla dies with "Request for subsystem 'sftp' failed on channel 0". Typically I recompile tla to fix this but a better fix occurred to me.

% cat .local/bin/ssh
#!/bin/bash

if [ "$1" = "-oFallBackToRsh=no" ]; then
	# we know it's tla
        /usr/bin/ssh $1 $2 $3 $4 $6 /usr/lib/sftp-server
else
        /usr/bin/ssh $*
fi