Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
December 4, 2006, 8:28 am
rate this thread
Does `scp` copy files from one directory to another on the same system
If so, how do I get this to do it?
I am working on a secure (Sun Sol5.8) externally exposed system and
want to copy from one user's dir to another set of user's dir's.
One user sends us data, I have to move this to several other user's who
take the data.
At the moment,this is scp'd to a secure internal Sun box,then copied
back out to these users dir's.
- Richard E. Silverman
December 4, 2006, 4:36 pm
ian> There is no command line for this transfer on the remote system!!
ian> I did try `scp usr1@remote:/whatever usr2@remote:/someother` from
ian> the internal system, but this fails.
Then perhaps you should find out *why* it fails.
>> user1$ scp foobar user2@localhost:
In what way? It has a restricted shell or something?
That effectively just does:
ssh usr1@remote "scp /whatever usr2@remote:/someother"
(try scp -vvv otheroptions to see what it's doing under the covers).
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum