@hynek @jimbob what is the source for this? What’s the “official” replacement? I would have assumed even rsync was built on scp
That said, I see no reason to use scp over rsync. Yes , I can never remember all the flags, but that’s what shell aliases are for, since you only need a small handful of combinations to do anything.
@tjc @jimbob Here’s some details: https://lwn.net/Articles/835962/
Not sure at this point if the sftp-based scp that’s teased in the article and IIRC was linked in this thread is more of a stopgap or the new real thing. I personally prefer scp too because it’s just simpler and less dangerous to use.
@tjc @hynek @jimbob Scp relies on legacy protocols and lacks proper args sanitation.
New versions of scp have been updated to use sftp internally to avoid the security issues, so maybe safe to use depending on OS, but it’s safer just to always use rsync instead.
Here’s a summary from Redhat with more info and links. https://access.redhat.com/articles/5284081