Argument processing with sftp

Iain Morgan imorgan at nas.nasa.gov
Tue Dec 15 05:42:02 EST 2009


Greetings,

One aspect of the recent sftp renovation which I don't recall being
discussed is its command-line argument processing. 

In particular, the command-line syntax supports retrieving a file as
follows:

$ sftp hoastA:file1 file2

But it does not support a similar syntax to send a file. In other words,

$ sftp file1 hostA:file2

is not currently supported. Moreover, the following command does not do
what you might expect:

$ sftp hostA:file1 hostB:file2

Instead of transferring a file between hostB and hostA, it retrieves a
file from hostA to the local host and names it hostB:file2.

Are there any plans to addres this part of sftp's command-line syntax in
the near future. Since the stted goal is to make sftp a drop-in
replacement for scp, it would seem that these issues need to be
addressed at some point.

Thanks

-- 
Iain Morgan


More information about the openssh-unix-dev mailing list