Re: copying multiple, unrelated files with scp

From: Nico Kadel-Garcia (nkadel_at_comcast.net)
Date: 12/22/03

  • Next message: Alexander Ignatyev: "psftp.exe die on exit in null session"
    Date: Mon, 22 Dec 2003 10:22:00 -0500
    
    

    "Chris Mattern" <syscjm@gwu.edu> wrote in message
    news:3FDBDE90.5010409@gwu.edu...
    > jonathan wrote:
    > > hey,
    > >
    > > I have a usability problem with ssh. I want to copy multiple,
    > > *unrelated* files from one system to another, and was wondering how I
    > > could do this without going through authentication multiple times, ie:
    > >
    > > scp user@host:/path/to/file/1 /tmp/1
    > > scp user@host:/path2/to/file2/2 /tmp/2
    > >
    > > ie - I can't use wild cards, and I can't use the '{.,.,.,}' syntax
    > > because there may be thousands of these files.

    Write a shell script?

    How are you selecting which files to pull down and which ones not to?

    > > inside of /tmp/listwithfilenames, and avoid the overhead of logging in
    > > 8,000 times.

    Definitely learn to use ssh-agent and authorized_keys: it will save you that
    excess logging in.

    > Use sftp instead. sftp has a provision for batch files.

    Also workable. sftp, and scp, don't deal well with symbolic links. Really
    consider using "rsync" if you want to copy links as instead of as whatever
    they point to.


  • Next message: Alexander Ignatyev: "psftp.exe die on exit in null session"

    Relevant Pages

    • Re: Amazon used lisp & C exclusively?
      ... >> paths and it's easier to put the same file in multiple places in the ... I'm saying the only time I needed symbolic links is when I needed to put the *same* file in multiple places, and symbolic links kept me from having to have multiple versions of a file. ... In cases like the "start the service", you create a symlink to the directory in Windows if you like, and check that it's there so you don't throw errors if the symlink is missing. ...
      (comp.lang.lisp)
    • Re: Amazon used lisp & C exclusively?
      ... paths and it's easier to put the same file in multiple places in the ... You've missed what I was saying. ... I'm saying the only time I needed symbolic links is when I needed to put the *same* file in multiple places, and symbolic links kept me from having to have multiple versions of a file. ... (therefore it existed equally on all platforms and the platform itself ...
      (comp.lang.lisp)