Re: Question about FTP over SSH or SFTP

From: Darren Tucker (dtucker_at_zip.com.au)
Date: 07/24/04

  • Next message: Rick Moen: "Re: Question about FTP over SSH or SFTP"
    Date: Sat, 24 Jul 2004 11:19:37 +1000
    To: Shane Smith <shane@voxeo.com>
    
    

    Shane Smith wrote:
    > Sorry if this is a newbie question, but I've searched the mailing lists and
    > google extensively, without finding out how to do this. I need to get
    > PureFTPd working with SSH. I see in the sshd_config file:
    >
    > Subsystem sftp /usr/libexec/openssh/sftp-server
    >
    > My question is how to change the subsystem to work with PureFTPd?

    You can't, unless you're prepared to completely rewrite it. Apart from
    having the letters "F", "T" and "P" in their names and the fact they
    both transfer files, FTP (ie the protocol in RFC959) and SFTP (ie the
    protocol in [1]) have little in common.

    If the objective is to run FTP over an SSH tunnel, then some SSH
    implementations understand enough of the FTP protocol to successfully
    forward FTP control and data connections.

    Alternatively, if you have a FTP client that supports both SOCKS and FTP
    passive mode (and your FTP server supports passive mode too) then in
    theory you could use one of the SSH clients that can act as a SOCKS
    server ("Dynamic Forwarding" in OpenSSH, PuTTY and probably others).

    In both cases you will need a stand-alone FTP client and server at both
    ends, the SSH connection is just adding tunnelling.

    If you give us a better idea of what you're trying to achieve (as
    opposed to how you're trying to achieve it) you'll probably get better
    advice.

    [1] http://www.ietf.org/internet-drafts/draft-ietf-secsh-filexfer-05.txt

    -- 
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
         Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.
    

  • Next message: Rick Moen: "Re: Question about FTP over SSH or SFTP"

    Relevant Pages

    • Re: ftp server question
      ... That innocent looking port scan you see in your firewall today could ... So anyone running an open FTP server has probably already been 'found out' but not everyone runs a log and even fewer probably check it! ... the SSH server, so it only gets attacked once every three minutes tops. ...
      (alt.computer.security)
    • Re: ftp server question
      ... That innocent looking port scan you see in your firewall today could ... So anyone running an open FTP server has probably already been 'found ... the SSH server, so it only gets attacked once every three minutes tops. ...
      (alt.computer.security)
    • Re: Simple file sharing between FC2 and Mac OS X?
      ... > SSH should work great but you'd need a real user account on her machine. ... I use Nautilus with SFTP to ... > transfer files to/from my laptop, web server, etc. ... > ftp server, or both. ...
      (Fedora)
    • Re: ftp to webserver - not as root
      ... >> I'm learning to set up a server via remote. ... We set it up so that root cannot ftp or ssh in. ...
      (Debian-User)
    • RE: FTPD & SSHD server
      ... I think you are confused about difference between ssh and FTPD. ... This FTP software gives FTP protocol ... not used over the public internet. ... high port number for data channel in passive mode. ...
      (freebsd-questions)