Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- copying multiple, unrelated files with scp
December 14, 2003, 3:30 am
rate this thread
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.
Is there a way to tell scp that the following file is going to contain
a *list* of source target pairs? That way I could say:
inside of /tmp/listwithfilenames, and avoid the overhead of logging in
Is this possible, or am I just dreaming? I didn't see it in the scp
manpage for solaris, and it would be extremely nice to have.
- Nico Kadel-Garcia
December 22, 2003, 3:22 pm
Re: copying multiple, unrelated files with scp
Write a shell script?
How are you selecting which files to pull down and which ones not to?
Definitely learn to use ssh-agent and authorized_keys: it will save you that
excess logging in.
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.
- » HELP! -- immediate ssh disconnets when port forwarding
- — Previous thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum