1 |
On Tue, 2005-12-27 at 23:53 +0000, Mick wrote: |
2 |
> Hi All, |
3 |
> |
4 |
> One day I hope to learn how to use ssh and the associated commands. So far |
5 |
> I have been struggling just to copy a file from one box (192.168.0.3) to |
6 |
> another (192.168.0.2). This is what I get, but and since I can't find the |
7 |
> 'copied' file . . . I suspect it fails. I don't understand why: |
8 |
> ================================== |
9 |
> # ssh root@192.168.0.3 |
10 |
> Password: |
11 |
> root@2[~]# scp -pv root@192.168.0.3:/mnt/sda14/sda10_home.tar . |
12 |
--CUT--- |
13 |
> |
14 |
> Ideally I would like to connect and tar | scp the directories/files from one |
15 |
> box to another in a single motion. Any advice to help me understand how to |
16 |
> make this work, or why the above attempt fails would be much appreciated. |
17 |
> -- |
18 |
> Regards, |
19 |
> Mick |
20 |
> |
21 |
|
22 |
scp is used in the same manner you use cp. It seems that you have ssh'd |
23 |
into your other box then are trying to scp to yourself. |
24 |
|
25 |
try this. |
26 |
comp1# scp root@<comp2>:/path/to/file.tar /path/to/local/ |
27 |
this will cp from <comp2> to <comp1> :) |
28 |
|
29 |
-Lares |
30 |
|
31 |
|
32 |
Lares Moreau <lares.moreau@×××××.com> | LRU: 400755 http://counter.li.org |
33 |
lares/irc.freenode.net | |
34 |
Gentoo x86 Arch Tester | ::0 Alberta, Canada |
35 |
Public Key: 0D46BB6E @ subkeys.pgp.net | Encrypted Mail Preferred |
36 |
Key fingerprint = 0CA3 E40D F897 7709 3628 C5D4 7D94 483E 0D46 BB6E |