Re: Difference between SCP and SFTP ?

From: Nico Kadel-Garcia (nkadel_at_comcast.net)
Date: 02/07/05


Date: Sun, 6 Feb 2005 20:04:32 -0500


"Matthew Poole" <spam@stops.here> wrote in message
news:cu5rj9$saj$1@lust.ihug.co.nz...
> In article <5573513d.0502061059.30521ff0@posting.google.com>,
> akim_ziadi@hotmail.com (mika) wrote:
> *SNIP*
>>But It's seems that SCP need a user Shell, Is it true ?
> Yes. scp uses the SSH system for login, and that requires a valid
> shell. I believe you will find that sftp does too.
>
> *SNIP*
>>Ps: What's the difference between scp and SFTP.
>>
> scp is a replacement for rcp, and is used to do batch file transfers in
> a non-interactive way. This means that the user or application needs to
> know the name and location of the file/s they wish to transfer before
> they commence.
> sftp is just FTP over SSH. You can browse the directory structure and
> get file listings before getting or sending files.

It's really not FTP. It's interface is similar to FTP, but it does not
recognize regexp commands or permit recursive directory listings, so basic
FTP functionality is missing, and as near as I can tell it will not report
symblinks correctly so that the link can be copied instead of the contents
of the link. For most folks, SFTP is equivalent to SCP with a slightly
different interface.

If you need to restrict users inside a more effective cage and gain better
control over authorized access, you might strongly consider WebDAV over
HTTPS, which allows plain old web browser downloading, and allows uploading
with good interfaces built into Windows, Linux, and has nice graphical Java
interfaces available for other OS's. I find it much easier to manage than
SSH cages for users who should not have local shells.



Relevant Pages

  • Re: How can I SFTP/SCP or SSH from different source interface (IP)?
    ... > specific interface that is not my primary interface. ... > I am using SSH Tectia from www.ssh.com ... OpenSSH has a BindAddress option which does this ("scp -o ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: scp sourcing .tcshrc???
    ... >>I just noticed whilst copying items that scp sources my cshrc file, ... > Your shell sources these files on startup. ... This would affect the behavior of both ssh and scp. ...
    (comp.security.ssh)
  • Re: ssh works, scp hangs [SOLVED]
    ... >> i guess i am needing help from some ssh grand masters... ... >> scp from A to B works ... it had to do with my default shell and its config files. ...
    (Debian-User)
  • Re: Strange behavior with scp
    ... > fortune (the one you see if you, say, log into a shell on the machine) ... scp requires a "clean login", and that message might be causing the SSH ...
    (freebsd-questions)
  • Re: How can I SFTP/SCP or SSH from different source interface (IP)?
    ... I would like to be able to SFTP or SCP from a ... > specific interface that is not my primary interface. ... > I am using SSH Tectia from www.ssh.com ...
    (comp.security.ssh)