Problem with protocol sftp

Peter Allgeyer <[email protected]> Sat, 18 Jun 2005 21:10:22 +0200
Newsgroups gmane.comp.web.sitecopy
Message-ID <1119121822.12595.109.camel@localhost>
Hi!

The sftp protocol uses ssh instead of sftp for connecting to the remote
site as following:

$ LANG=C sitecopy --debug=sftp,socket --fetch site
sitecopy: Fetching site `site' (on <server> in /)
rcmd: ssh -l <username> <server> \\ls -laR '/' 2> /dev/null
<username>@<server>'s password: 
Fetch finished successfully.
sitecopy: Fetch completed successfully.
$ 

This means that the so called "sftp protocol" is a "ssh protocol" in
reality (read this:
http://en.wikipedia.org/wiki/SSH_file_transfer_protocol,
http://en.wikipedia.org/wiki/Secure_FTP). You can change this behaviour
by setting 'rsh "sftp"' in .sitecopyrc. But then sftp is called like
this:
rcmd: sftp -l <username> <server> \\ls -laR '/' 2> /dev/null

Why is this a problem? There are sites which only allow sftp connections
and _no_ ssh connections. sftp only understands the flag "-l" to the
"ls" command. Although the fetch isn't successfully, it states that it
is!

So what would be expected to be done? The "sftp protocol" should work
like the "ftp protocol" w/o calling ssh.

Ciao ...
	... PIT ...


---------------------------------------------------------------------------
 copyleft(c) by |           ... Linux's  capacity to talk via any medium
 Peter Allgeyer |   _-_     except smoke signals.  -- Dr. Greg Wettstein,
                | 0(o_o)0   Roger Maris Cancer Center
---------------oOO--(_)--OOo-----------------------------------------------


_______________________________________________
sitecopy maillist  -  [email protected]
http://dav.lyra.org/mailman/listinfo/sitecopy