scp -r problem

kenrcoeb_at_mail.rochester.edu
Date: 06/15/04

  • Next message: Martin Harte: "OpenSSH ssh-keygen problems tru64 4.0f"
    Date: Tue, 15 Jun 2004 10:09:16 -0400 (EDT)
    To: secureshell@securityfocus.com
    
    

    All of a sudden a week and a half ago, the users say, scp -r stopped working
    in one special way.

    Normally...

    Localhost:
        mkdir /tmp/z
        cd /tmp/z
        touch a b c
        cd /tmp
        scp -r z remotehost:/tmp
    z/a | 0B | 0.0 kB/s | TOC: 00:00:01 | 100%
    z/b | 0B | 0.0 kB/s | TOC: 00:00:01 | 100%
    z/c | 0B | 0.0 kB/s | TOC: 00:00:01 | 100%
    And if you scp again it works again.

    However to one machine of ours, if the remote directory z already exists:

    scp: warning: mkdir: /tmp/z (dst): no such file (server msg: 'syserr: No such file or directory, file: /tmp/z')

    This error messsage is from
    scp: SSH Secure Shell 3.2.2 (non-commercial version) on sparc-sun-solaris2.8

    It also fails the same way with slight error-message wording changes under
    3.2.5. I will try 3.2.9 when I get back from YAPC. I don't have this
    problem on any other machine that I have tried. Of course the target machine
    is the one where users actually rely on scp -r, thanks to Murphy's Law.
    Trussing (process tracing) seems to indicate a problem reading /dev/tty
    rather than a problem with /tmp/z.

    Anybody seen this?

    --
    -ken rich    "Of course, someone who knows
                  more about this will correct
                  me if I'm wrong, and someone
                  who knows less will correct me
                  if I'm right." --David Palmer     kenrcoeb(a)mail.rochester.edu   
    

  • Next message: Martin Harte: "OpenSSH ssh-keygen problems tru64 4.0f"

    Relevant Pages

    • How to wrap up scp command?
      ... I basically want to write a general script that can put a port number ... in and in the same time replace the hostname by localhost. ... The new scp ...
      (comp.unix.shell)
    • How to wrap up scp command?
      ... I basically want to write a general script that can put a port number ... in and in the same time replace the hostname by localhost. ... The new scp ...
      (comp.unix.shell)
    • Re: How to wrap up scp command?
      ... in and in the same time replace the hostname by localhost. ... The new scp ... would be a wrapper of the old scp command but with a default port ...
      (comp.unix.shell)
    • scp -r fails
      ... All of a sudden around June 10, the users say, scp -r stopped working ... exists, as in doing scp again in the example, scp fails and you get the ...
      (comp.security.ssh)