Re: Passive sftp?



FTP has become complicated. These are two standards for secure ftp
SFTP and FTPS.

SFTP operates like ssh/scp. It uses the same port (port 22). openssh
supports sftp both client and server.

FTPS operates like ftp and ssl/tls (port 20/21, etc). Among the ftp
clients that now support this addition are gftp and fireftp. vsftpd is
a FTPS server.

On Wed, Mar 5, 2008 at 9:29 PM, Tom Lobato <tomlobato@xxxxxxxxx> wrote:
Bob Rasmussen escreveu:

> In the FTP protocol, "passive" means that only one connection is
> established, originating in the client. All trafic goes over this
> connection. (In non-passive FTP, the server opens a second channel back to
> the client.)
>
> No such differentiation exists in SFTP. There is only one connection.
>
> The vendor may be using "passive" in a different sense, but I don't think
> it is a widely accepted usage.

in really, both passive and active ftp modes uses two connections. The
first, which is originated on client (to port 21 on server), is the
control connection, for authentication, command/response exchanges, etc.
The second connection, which transfer effective data, support two modes:
passive: originated from client to server. Uses destination port
defined on control connection.
active: originated from server to client. Uses destination port 20 on
client.

See http://www.faqs.org/rfcs/rfc1579.html (Firewall-Friendly FTP).

good resources:
http://en.wikipedia.org/wiki/File_Transfer_Protocol
http://www.slacksite.com/other/ftp.html
http://www.faqs.org/rfcs/rfc959.html (for the braves!)


Tom Lobato
www.tinecon.com.br




Relevant Pages

  • [SLE] Re: solved [SLE] setting up ftp server under Suse 10.1?
    ... someone pointed out to me that tftp is not ftp. ... Standard FTP commands run over port 21, file xfers use port 20; ... When a client behind a firewall initiates an FTP connection ...
    (SuSE)
  • Re: Telnet/ftp problems SBS2000
    ... | through the server to get internet access everything works. ... | client uses an internet backup company to backup his really vital data, ... I understand that you cannot use ftp service to ... the connection can be established ...
    (microsoft.public.windows.server.sbs)
  • Re: Telnet/ftp problems SBS2000
    ... the client became desperate so we had to find a ... the software communicates on port 308. ... So I don't really know if telnet or ftp ... the connection can be established ...
    (microsoft.public.windows.server.sbs)
  • Re: Microsoft FTP Server problem on W2K?
    ... I have technical responsibility for this FTP implementation, ... Since PASV voids PORT, the client side ... connect to the server from" isn't implied by the text of the RFC. ...
    (microsoft.public.inetserver.iis.security)
  • Re: IPSwitch, Inc. WS_FTP Server
    ... > bounce attack as well as PASV connection hijacking. ... > The FTP bounce vulnerability allows a remote attacker to cause the ... > anonymously along with any internal addresses that the FTP server has ... That means it's got to handle a PORT ...
    (Bugtraq)