[plug] scp question

garry garbuck at westnet.com.au
Thu Jan 27 15:41:46 WST 2005


Senectus . wrote:

>If I ssh from here to my home server then do:
>scp -r username at 192.168.0.1:/home/username/remotefile.txt .
>
>It should copy the file to the home server shouldn't it?
>So then if I want that file here I need to run scp from "my" local
>machine to get it here, correct?
>
>  
>
scp can copy from REMOTE to LOCAL or the other way around.

Local to remote: scp filename.txt username at ipaddress:/home/username/

or

Remote to local:

scp username at ipaddress:/home/username/filename.txt .

If you are SSH'd somewhere else the command line you see is the local one..

HTH

Garry



More information about the plug mailing list