Re: Need for SFTP package, including API

From: David Magda (dmagda+trace031024_at_ee.ryerson.ca)
Date: 01/25/04

  • Next message: Pinky: "openssh for windows setup problems"
    Date: 25 Jan 2004 16:55:52 -0500
    
    

    I don't know whether this is for Nico or Donald since at some point
    some messed up the quoting.

    "Nico Kadel-Garcia" <nkadel@comcast.net> writes:

    > "Donald V" <ask-me-later@maybe.com> wrote in message
    > news:8OOcnSZuitpwPJHdXTWc-g@speakeasy.net...
    > I have been doing research on Secure FTP for a future business
    > client. They wish to implement SFTP for document transport, and I
    > will be writing C++ code under Windows to manage it.
    >
    > From the research I've done already, it seems most sftp server
    > packages are proprietary but conform to the standard (RFC 2228). I
    > know that OpenSSH provides a free sftp server but I can't find a

    RFC 2228 is *not* SFTP. RFC 2228 defines extensions to regular FTP
    (RFC 959). If you read the abstract form 2228:

       Abstract

       This document defines extensions to the FTP specification STD 9,
       RFC 959, "FILE TRANSFER PROTOCOL (FTP)" (October 1985). These
       extensions provide strong authentication, integrity, and
       confidentiality on both the control and data channels with the
       introduction of new optional commands, replies, and file transfer
       encodings.

       http://www.ietf.org/rfc/rfc2228.txt

    I don't think this is even FTP-SSL/TLS since there is no RFC for
    that, only a draft:

    http://www1.ietf.org/mail-archive/ietf-announce/Current/msg25923.html

    > version for Win32, and it seems that it doesn't port to Win32 well.
    > (Ultimately this Win32 server requirement may not be necessary.)
    > It might also be provided by default in Windows Server 2003, but I
    > can't find any information on MSDN's site about sftp at all (GOSH
    > that's the worst search tool ever).

    Where is a LGPL C library available at:

    http://www.0xbadc0de.be/projects/sshlib.html/

    Other than that you'll either have to buy the SSH.com SDK, port
    OpenSSH (BSD license) or implement your own. I'm pretty sure there
    are other SSH/SFTP implementations, but they may not have accessible
    libraries.
     
    > Save yourself some grief: Either use the CygWin implementation of
    > OpenSSH with SFTP capability, or strongly consider using a
    [...]

    But if he needs a library he may be programming client of some
    kind. While linking together utilities is handy (even under Cygwin),
    it is not always a viable solution.

    -- 
    David Magda <dmagda at ee.ryerson.ca>, http://www.magda.ca/
    Because the innovator has for enemies all those who have done well under
    the old conditions, and lukewarm defenders in those who may do well 
    under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
    

  • Next message: Pinky: "openssh for windows setup problems"

    Relevant Pages

    • sftp server
      ... I am trying to build an sftp server and chroot the users to ... their home directories. ... openssh, openssh-server, and openssh-client. ... Once I try to sftp into the server I receive the following error message: ...
      (RedHat)
    • Re: standalone libraries for SFTP and SMB
      ... I'd like to add support for SFTP and SMB. ... OpenSSH includes an SFTP binary, of course, but I'd have to rewrite ... several complex makefiles to generate it without installing all of ... Thought about using the libraries from Gnome-VFS, ...
      (freebsd-questions)
    • standalone libraries for SFTP and SMB
      ... a simple way to build the library without installing all of Samba. ... OpenSSH includes an SFTP binary, of course, but I'd have to rewrite ... Thought about using the libraries from Gnome-VFS, ...
      (freebsd-questions)
    • Re: standalone libraries for SFTP and SMB
      ... I'd like to add support for SFTP and SMB. ... OpenSSH includes an SFTP binary, of course, but I'd have to rewrite ... several complex makefiles to generate it without installing all of ... Thought about using the libraries from Gnome-VFS, ...
      (freebsd-questions)
    • Re: Does OpenSSH use RCP?
      ... > with someone about the difference between OpenSSH and SFTP. ... > SFTP) than SCP will fail. ... OpenSSH uses an implementation that is compatible to the original SSH ...
      (comp.security.unix)