[CentOS] scp -rp behavior

Fri Feb 27 01:53:00 UTC 2015
Always Learning <centos at u64.u22.net>

On Fri, 2015-02-27 at 01:15 +0000, Richard wrote:


> As I believe was suggested by someone when you asked about this a
> few days ago, the space that you have after the colon:
> 
>   scp -pr mlapier at 192.168.15.105: /home/m...
> 
> is the source of your problem. I just tested and confirmed it.

When transferring files between machines I use this (in a BASH file)

	scp -P 12345 -p $file aaa.example.com://$file

Note the colon and 2 slashes.


-- 
Regards,

Paul.
England, EU.      Je suis Charlie.