How to ssh copy a file from local to web host when logged in?

joe at actionline.com joe at actionline.com
Sun Dec 19 15:22:18 MST 2010


Thanks Keith!

> I Found this if it helps: 
>
> scp [[user@]from-host:]source-file [[user@]to-host:][destination-file]
>
> http://www.go2linux.org/scp-linux-command-line-copy-files-over-ssh
>
> ------------------------
>
> Keith Smith
>
> --- On Sun, 12/19/10, joe at actionline.com <joe at actionline.com> wrote:
>
> From: joe at actionline.com <joe at actionline.com>
> Subject: Re: How to ssh copy a file from local to web host when logged in?
> To: "Main PLUG discussion list" <plug-discuss at lists.plug.phoenix.az.us>
> Date: Sunday, December 19, 2010, 2:31 PM
>
>
> Kevin replied:
>> From a terminal/console that is not ssh-ed into your web host, copy the
>> files diectly with scp.
>
> But my question was what syntax should I use *while I am logged in* to my
> web host server to copy a file (or directory) from my local system to my
> web host server.
>
> # scp [what] to [what] ???
>
> --------------------------
>> My original question was:
>> What is the syntax to copy a file from a local computer to a web host
>> server when logged in to the web host server?
>>
>> I used to use 'ftp' to upload files to my web host server, but it seems
>> that in the latest "update" 'ftp has been removed from my system.
>>
>> So when I 'ssh' log-in to my web host server, what is the correct syntax
>> to copy a file (or complete directory) from my local system to the
>> target/destination web host server?
>>
>> I tried this: cp -p /home/joe/filename.pdf rascal.pdf
>>
>> But that does not work. It gives this error message:
>>
>> cp: cannot stat `/home/joe/filename.pdf': No such file or directory
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>
>       ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss




More information about the PLUG-discuss mailing list