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

Re: Fwd: ssh again



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".

Regards,
jvp.



Reply to: