[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: ssh again



On Wednesday 15 June 2016 10:13:26 Jörg-Volker Peetz wrote:
> Leon.37428 wrote on 06/14/16 19:28:
> <snip>
>
> > With scp if you plan on using the same file-name, you don't need to
> > specify it on the other end. You can simply go right ahead and just type:
> >
> > scp /home/whatever/file.jpg remote@hostname:"/home/user/Pictures"
>
> Better command
>
>   scp /home/whatever/file.jpg remote@hostname:/home/user/Pictures/
>
> because with the ending "/" you state you intend to copy to a directory. If
> it doesn't exist you get an error message. Without the "/" at the end of
> the remote path you would rename your file and could even overwrite an
> existing file name "Pictures".

That explains one of the error messages I got!  Thank you, Jörg-Volker.

Thanks again to all, for all the help and ideas,
Lisi


Reply to: