Re: Proposed enhancement to scp

From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 02/26/04


Date: Thu, 26 Feb 2004 20:50:45 +0000 (UTC)

In article <URn%b.25105$mE3.20483@newssvr24.news.prodigy.com>,
Steve Turner <bbqboyee@H2OlooWoodworks.com> wrote:
>Darren Tucker wrote:
>> Be aware that the model for scp is rcp, and if it's not something rcp
>> does then there's a good chance it will not be accepted. (Also, -p is
>> already used.)
>
>I'm sorry to hear you say that. Where would GNU software be today if
>they had decided that making improvements on the original code was a bad
>idea?

Well, OpenSSH is not GNU software, but that's really the point.

The point is scp is a non-standard. The closest thing it has to a
specification is "what rcp does". The same command is used on both ends
of the connection, and it has to interoperate with other implementations,
so adding new options can be tricky.

New features are more likely in sftp, since the protocol is standardized
(well, a draft standard), and the client and server are decoupled. In
fact, you can already do what you want with the batch option, albeit in
a somewhat verbose way:

(echo -mkdir /tmp/dir; echo put -P file /tmp/dir/file) | sftp -b - localhost

-- 
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.


Relevant Pages

  • Re: Exist any protocol specification for scp?
    ... [scp and rcp] ... > scp between incompatible versions. ... PuTTY's pscp) implement the sftp protocol in their "scp" command, ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: remote copy issues
    ... Subject: remote copy issues ... Example if the shell is not listed in the /etc/security/login.cfg file then, if you try to set that shell as the login ... It would seem me changing a userid from ksh to bash via NIS has introduced some problems with rcp and scp capabilities of that user as it used to work.. ...
    (AIX-L)
  • Re: Copying over network
    ... >> files over a network without encrypting them all. ... >> I am currently using scp however that is very slow on my lower end boxes ... >> the files I am copying from one FreeBSD to my new FreeBSD server are on ... > You could use rcp, which is part of the base system. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Slow SCP
    ... > I have shifted from RCP to SCP and i find it very slow. ... -- rcp writes a stream of bytes, scp writes streams too but in 1k-ish ... you have a version of ssh that has the none cipher? ...
    (comp.security.ssh)
  • Re: scp vs rcp
    ... Using the standard load, ... logs at roughly 1/4 the speed of rcp. ... the scp of files. ... significant load (kicking out archive logs every 2-3 minutes). ...
    (comp.security.ssh)