On Tue, 2005-12-27 at 23:53 +0000, Mick wrote:
> Hi All,
> 
> One day I hope to learn how to use ssh and the associated commands.  So far
> I have been struggling just to copy a file from one box (192.168.0.3) to
> another (192.168.0.2).  This is what I get, but and since I can't find the
> 'copied' file . . . I suspect it fails. I don't understand why:
> ==================================
> # ssh [EMAIL PROTECTED]
> Password: 
> [EMAIL PROTECTED] scp -pv [EMAIL PROTECTED]:/mnt/sda14/sda10_home.tar .       
>   
--CUT---
> 
> Ideally I would like to connect and tar | scp the directories/files from one
> box to another in a single motion.  Any advice to help me understand how to
> make this work, or why the above attempt fails would be much appreciated.
> -- 
> Regards,
> Mick
> 

scp is used in the same manner you use cp. It seems that you have ssh'd
into your other box then are trying to scp to yourself.

try this.
comp1# scp root@<comp2>:/path/to/file.tar /path/to/local/
this will cp from <comp2> to <comp1> :)

-Lares


Lares Moreau <[EMAIL PROTECTED]>  | LRU: 400755 http://counter.li.org
lares/irc.freenode.net                 |
Gentoo x86 Arch Tester                 |               ::0 Alberta, Canada
Public Key: 0D46BB6E @ subkeys.pgp.net |          Encrypted Mail Preferred
Key fingerprint = 0CA3 E40D F897 7709 3628  C5D4 7D94 483E 0D46 BB6E

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to