On 06/14/2016 01:06 PM, Andrew M.A. Cater wrote: > On Tue, Jun 14, 2016 at 03:37:47PM +0100, Lisi Reisz wrote: >> Here is a repeat of my earlier failed attempt. >> >> peter@Nyx-II:~/Lisi$ scp /home/peter/Pictures/Winter\ Dream\ II.jpg >> lisi@192.168.0.2:/home/lisi/Pictures?Winter\ Dream\ II.jpg >> lisi@192.168.0.2's password: >> scp: ambiguous target >> peter@Nyx-II:~/Lisi$ >> >> This was the method that had worked from .2 to .3. (Logged into .3 from .2, >> copied from .2 to .3 - that's how that picture got there!!) >> >> Lisi >> >> ---------- Forwarded Message ---------- >> > > Watch your slashes :) > > scp /ome/peter/Pictures/Winter\ Dream\ II.jpg > lisi@192/168.0.2:/home/lisi/Pictures/Winter\ Dream\ II.jpg > > to be honest, I'd be tempted to make a copy of the picture as > Winterdream2.jpg - that way you don't have to escape > spaces with the backslash > > HTH, > > AndyC > 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" - Leon