Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2001 05:50:30 -0800
From:      Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
To:        Tobias Reifenberger <treif@mayn.de>
Cc:        dmarion@open.hr, ports@freebsd.org
Subject:   Re: sftp port - sftpserv location 
Message-ID:  <200102121350.f1CDocK08143@cwsys.cwsent.com>
In-Reply-To: Your message of "Fri, 09 Feb 2001 23:05:26 %2B0100." <3A8469A6.B732E7B1@mayn.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <3A8469A6.B732E7B1@mayn.de>, Tobias Reifenberger writes:
> Cy Schubert - ITSD Open Systems Group wrote:
> 
> > Gftp cannot use sftpserv.  Only sftp, the sftp client, is able to use
> > sftpserv. Sftp/sftpserv use their own protocol which uses one socket
> 
> Are you sure? Please look at the gftp FAQ and the output of the grep
> command below.
> 
> >From gftp FAQ
> <snip>
> How do I transfer files through the SSH protocol?
> 
> You will first need to grab sftp >= 0.7 from http://www.xbill.org/sftp.
> <snip>
> 
> 
> grep sftpserv gftp-2.0.7b/src/ssh.c
> /* This will use Brian Wellington <bwelling@xbill.org>'s sftpserv
> program */
>   args[i++] = "sftpserv";
> 
> 
> As you can see, gftp seems to have support for sftp. And it assumes that
> the sftpserv binary is in the standard search path. To get it working
> you must add {PREFIX}/libexec to your path. And I think, this isn't a
> good idea...
> 
> What do you think?

I've had a chance to think about this over the weekend.  Ideally the 
best solution would be for gftp to look for sftpserv in
$PREFIX/libexec, however any simple patch to gftp to do so would break 
any opportunity to change the PREFIX for the gftp port.  To do it 
properly would mean a great deal of changes to the gftp port, which I 
don't think would be worth the effort.

Though I don't think that sftpserv should live in $PREFIX/bin, e.g.
/usr/local/bin, because it gives lusers the opportunity to execute the 
binary, then call tech support when it appears to hang, I suppose 
having gftp work with sftp is a greater benefit.  I've reluctantly
submitted patches, PR 25034 (because I don't have commit privileges),
to put sftpserv into $PREFIX/bin.

I've cc'd the maintainer of gftp and -ports to hopefully encourage the 
discussion of some ideas I haven't considered regarding this issue.


Regards,                         Phone:  (250)387-8437
Cy Schubert                        Fax:  (250)387-5766
Team Leader, Sun/Alpha Team   Internet:  Cy.Schubert@osg.gov.bc.ca
Open Systems Group, ITSD, ISTA
Province of BC






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102121350.f1CDocK08143>