[PATCH] Add scp -1 and -2 options to OpenSSH-3.0.2p1

Dan Kaminsky dan at doxpara.com
Mon Jan 28 23:59:19 EST 2002


>      scp -s,-1 -s,-C file remote:
>
> where -s simply means `pass this option on to ssh'. You can also
> get rid of -F and -o then and do them using -s to reduce the
> non-rcp options to just one.

Well, lets look at what happens:

scp -r -s,-c blowfish -s,-C -s,-2 - user at host:/foo .

vs.

scp -rC2 -c blowfish user at host:/foo .

or even

scp -e "ssh -C2 -c blowfish" user at host:/foo .

I actually kinda *like* the second syntax; I just think it's a bit
redundant.  SCP should imply use of SSH; that's the only way to keep the
implication that a server that doesn't support SCP is either a) buggy or b)
security-restricted.  It's not "scp over ssh", it's not "rcp over ssh" --
it's "scp, an integrated component of OpenSSH we expect to find the other
half of on the server, in the same way we expect to find the sftp-server
subsystem".

The fact that the comma syntax is very nonstandard means we're demanding a
hard translation, which I'm trying to avoid.

--Dan





More information about the openssh-unix-dev mailing list