Re: Error checking in sftp

From: Stein Arne Storslett (sastorsl_at_THOU.SHALT.NOT.SPAM.online.no)
Date: 09/24/04


Date: Fri, 24 Sep 2004 07:50:54 GMT


<elvis@notatla.org.uk> wrote in <slrncl3q2r.2sb.elvis@notatla.org.uk>:
> In article <2w94d.10813$g%5.134921@news2.e.nsc.no>, Stein Arne Storslett wrote:
>
>>With sftp it's a different story. There seems to be no standard error
>>messages between serveres, and provoking all types of errors will be to
>>time consuming and to insecure.
>>
>>I am aware that sftp will abort on cd, rm and get if you use a batch
>>file. But that's just not good enough. I need to trap any errors.
>>
>>What I've done is that I do only one file transfer at a time, and I
>>compare the filesize on the local and remote file after the transfer has
>>finished.
>>
>>What have other people done?
>
> It might be simplest to write an entire file transfer protocol
> and implementation and just run it over SSH. I do this in a couple
> of places. My retrieval of significant logs fragments from my
> webserver is a protocol similar to POP3 for instance. What do
> you need beside a single connection with both command and data modes
> and some keeping of state at the ends ?

Writing a new software is a bit out of reach for me.
Besides, this is going to run on a variety of hosts and _against_ a
variety of hosts (both Unix of various types and Windows(...)).

This means that I in some cases are restricted to _only_ sftp.

-- 
Stein Arne


Relevant Pages

  • Re: Slow file transfer using SFTP
    ... | when I use regular FTP I get 600 KBbs. ... Both scp and sftp are slow on any combination of systems I've tried ... (Solaris, Linux, AIX). ...
    (comp.security.ssh)
  • Re: Error checking in sftp
    ... >time consuming and to insecure. ... >What I've done is that I do only one file transfer at a time, ... It might be simplest to write an entire file transfer protocol ...
    (comp.security.ssh)
  • Re: sFTP from/to z/OS
    ... SFTP often refers to SSH file transfer protocol. ... FTP can have a lot of architectural ...
    (bit.listserv.ibm-main)
  • Re: scp requieres scp1?
    ... it's not nearly as trivial to automate a file transfer using ... It's possible using batch mode, but you have to prepare a ... > ST> an scp command in a script. ... you often can use sftp entirely from within a script; ...
    (comp.security.ssh)
  • RE: Asus A8V NIC issues
    ... SFTP works a little better. ... Don't forget to take into account your disc drive speeds. ... at the output of the top command during a file transfer, ... (Currently running FC4, occasionally trying FC5.) ...
    (Fedora)