LWN: Comments on "Deprecating scp" https://lwn.net/Articles/835962/ This is a special feed containing comments posted to the individual LWN article titled "Deprecating scp". en-us Tue, 16 Sep 2025 19:28:20 +0000 Tue, 16 Sep 2025 19:28:20 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Deprecating scp https://lwn.net/Articles/867320/ https://lwn.net/Articles/867320/ wtarreau <div class="FormattedComment"> Bah, it means it&#x27;s time to reinstall rsh and rcp to get something durable. Reliable old tools never completely disappear, only their temporary replacents.<br> <p> </div> Wed, 25 Aug 2021 13:30:04 +0000 I like sshfs https://lwn.net/Articles/853181/ https://lwn.net/Articles/853181/ RoyBellingan <div class="FormattedComment"> Thank you, I felt alone using this marvellous tool.<br> </div> Sat, 17 Apr 2021 20:46:21 +0000 Deprecating scp https://lwn.net/Articles/845243/ https://lwn.net/Articles/845243/ flussence <div class="FormattedComment"> One could cobble something together with rsync and sshfs (on the sender or both endpoints), which might work out faster if it&#x27;s a partial copy. It&#x27;s a bit of a shame rsync doesn&#x27;t support this mode of operation directly.<br> </div> Fri, 05 Feb 2021 19:39:56 +0000 Deprecating scp https://lwn.net/Articles/843777/ https://lwn.net/Articles/843777/ mbunkus <div class="FormattedComment"> You can approximate &quot;scp -3&quot; with ssh &amp; tar, without having to use tunnels or anything else, as in:<br> <p> ssh host1 &quot;tar czf - /path /other/path&quot; | ssh host2 &quot;tar xzfC - /&quot;<br> </div> Mon, 25 Jan 2021 12:17:04 +0000 Deprecating scp https://lwn.net/Articles/843770/ https://lwn.net/Articles/843770/ tconnors <div class="FormattedComment"> <font class="QuotedText">&gt; At this point, it is claimed to work for most basic usage scenarios; some options (such as -3, which copies files between two remote hosts by way of the local machine) are not supported</font><br> <p> That would be unfortunate. The only time I&#x27;ve used scp in the past... 15 years(?) is for scp -3.<br> <p> The alternative is setting up horrible reverse tunnels with ssh, from memory. Yes, I do believe I use this in production at work (because I needed sync of directory trees), but am not about to check because we&#x27;re about to enter into a public holiday.<br> </div> Mon, 25 Jan 2021 09:44:47 +0000 Deprecating scp https://lwn.net/Articles/837988/ https://lwn.net/Articles/837988/ nix <div class="FormattedComment"> That it was &quot;out of scope&quot;, that rsync&#x27;s job was to copy files, and nonportable stuff doesn&#x27;t count. (I guess they define what is &quot;nonportable&quot;.)<br> </div> Fri, 20 Nov 2020 22:46:16 +0000 Deprecating scp https://lwn.net/Articles/837835/ https://lwn.net/Articles/837835/ rodgerd <div class="FormattedComment"> That&#x27;s very disappointing. What was the rationale?<br> </div> Thu, 19 Nov 2020 22:27:08 +0000 Deprecating scp https://lwn.net/Articles/837822/ https://lwn.net/Articles/837822/ nye <div class="FormattedComment"> <font class="QuotedText">&gt; rsync does have an option that says &quot;only write stuff that&#x27;s changed&quot;</font><br> <p> --inplace --no-whole-file<br> <p> By default rsync will only use --whole-file if both source and destination are local, so the second option is redundant in that case.<br> </div> Thu, 19 Nov 2020 17:46:27 +0000 I like sshfs https://lwn.net/Articles/837269/ https://lwn.net/Articles/837269/ Luyseyal <div class="FormattedComment"> I just came here to say that I love using sshfs. Does it meet every scp use case? Nah. But it is super handy.<br> </div> Sun, 15 Nov 2020 14:19:26 +0000 Deprecating scp https://lwn.net/Articles/837066/ https://lwn.net/Articles/837066/ nim-nim <div class="FormattedComment"> Well that probably would mean rewriting scp around HTTP/3, not sftp.<br> <p> Browsers have become the elephant in the room everyone optimizes for.<br> </div> Fri, 13 Nov 2020 09:39:26 +0000 Deprecating scp https://lwn.net/Articles/836995/ https://lwn.net/Articles/836995/ jcpunk <div class="FormattedComment"> I love the idea of taking what we&#x27;ve learned about high performance, secure, network protocols over the last 30 years and improving the overall landscape!<br> <p> I don&#x27;t love the idea of updating a billion scripts and having to explain why the documentation everyone finds all over the internet doesn&#x27;t work anymore.<br> <p> All in all, this is an optimistic mixed bag. But it sure is the kind of thing the community should be looking at.<br> </div> Thu, 12 Nov 2020 14:45:00 +0000 Deprecating scp https://lwn.net/Articles/836692/ https://lwn.net/Articles/836692/ Creideiki <div class="FormattedComment"> Having had the misfortune of working in an environment that mixed modern Linux, ancient Solaris, and weird real-time UNIXoids, I laugh at the notion of &quot;a tar stream&quot;, as if that is somehow well-defined. You don&#x27;t even have to go that far out in the weeds to find incompatibilities; read <a href="https://mgorny.pl/articles/portability-of-tar-features.html">https://mgorny.pl/articles/portability-of-tar-features.html</a> and despair.<br> </div> Mon, 09 Nov 2020 22:09:33 +0000 Deprecating scp https://lwn.net/Articles/836680/ https://lwn.net/Articles/836680/ nix <div class="FormattedComment"> After it&#x27;s deprecated it will be a thing that used to be a binary. Perhaps related to SCP-2602 (which used to be a library).<br> </div> Mon, 09 Nov 2020 17:10:56 +0000 Deprecating scp https://lwn.net/Articles/836677/ https://lwn.net/Articles/836677/ rahulsundaram <div class="FormattedComment"> Looks like they would need to clarify this<br> <p> <a href="https://discussion.fedoraproject.org/t/improving-license-text/24430/10">https://discussion.fedoraproject.org/t/improving-license-...</a><br> <p> The intent is for all the content to be under the same free content license<br> </div> Mon, 09 Nov 2020 16:18:30 +0000 Deprecating scp https://lwn.net/Articles/836556/ https://lwn.net/Articles/836556/ ptman <div class="FormattedComment"> But there are shells that restrict you to only scp. Like rssh or scponly<br> </div> Sun, 08 Nov 2020 11:09:14 +0000 rsync -a is not the same as cp -R https://lwn.net/Articles/836545/ https://lwn.net/Articles/836545/ Wol <div class="FormattedComment"> Whoops :-)<br> <p> I meant, of course, hard links.<br> <p> Oh - and if you don&#x27;t need to preserve hard links (which I do), it&#x27;s not a good idea to try. I think my rsync or cp crawled, I had so many it needed to keep track of ...<br> <p> Cheers,<br> Wol<br> </div> Sun, 08 Nov 2020 00:03:28 +0000 rsync -a is not the same as cp -R https://lwn.net/Articles/836543/ https://lwn.net/Articles/836543/ Sesse <div class="FormattedComment"> FWIW, links in UNIX are either hard (hardlinks) or symbolic (symlinks). There&#x27;s no such thing as “hard symlinks”.<br> </div> Sat, 07 Nov 2020 23:22:46 +0000 Deprecating scp https://lwn.net/Articles/836525/ https://lwn.net/Articles/836525/ ncm <div class="FormattedComment"> The UNIX tradition is to read all the man pages from front to back and memorize it all.<br> <p> That is harder nowadays, because there are a lot more with more pages each. But a reasonable selection of them deserve the old-school treatment. Rsync it probably one that does. Anyway, a curated selection of its options. (Eyes rolling? That&#x27;s our world now.)<br> <p> Instead of sitting and memorizing the whole collection, of an evening, why not bring home rsync(1), and memorize just that? What else would you do, look at your phone?<br> </div> Sat, 07 Nov 2020 06:45:36 +0000 Deprecating scp https://lwn.net/Articles/836513/ https://lwn.net/Articles/836513/ Comet <div class="FormattedComment"> If memory serves, then the original SSH.com implementation, when they released protocol v2, made scp over v2 use the SFTP protocol.<br> <p> At the time that OpenSSH was launched, the developers involved didn&#x27;t yet see the value in dropping the simplicity of the rcp-over-ssh protocol or messing with interop.<br> <p> Time passes, domain expertise is acquired. The Finns laugh last.<br> </div> Fri, 06 Nov 2020 22:24:25 +0000 rsync options exist for a reason https://lwn.net/Articles/836510/ https://lwn.net/Articles/836510/ marcH <div class="FormattedComment"> <font class="QuotedText">&gt; I disagree, the many other rsync options exist for a reason. I have a situation where I use three lines of options for rsync (!).</font><br> <p> Of course other rsync options exist for a reason and I do look them up and use them sometimes. Above I was only referring to basic, [s]cp-like usage.<br> <p> Answering other comments too: if you must preserve hardlinks, sparse files, ACLs or some other unusual stuff then you better check the man page of _any_ tool you use.<br> <p> <font class="QuotedText">&gt; The world needs a &quot;simple replacement for cp that copies remotely&quot; and a &quot;sophisticated tool for remote synchronization&quot;. They don&#x27;t need to be the same tool, and historically have been different.</font><br> <p> They don&#x27;t need to be different tools either. I&#x27;ve been using a unique tool for &quot;simple replacement for recursive, _local_ cp&quot; all the way to &quot;sophisticated tool for remote synchronization&quot; and it has made simple things easy and complex things possible. So if you want a solution that already exists now then give it a try. If scp muscle memory is just too strong then a sincere &quot;best of luck!&quot;<br> <p> <p> </div> Fri, 06 Nov 2020 21:02:47 +0000 Deprecating scp https://lwn.net/Articles/836506/ https://lwn.net/Articles/836506/ flewellyn <div class="FormattedComment"> Maybe as a -J entry.<br> </div> Fri, 06 Nov 2020 18:38:17 +0000 Deprecating scp https://lwn.net/Articles/836499/ https://lwn.net/Articles/836499/ rahulsundaram <div class="FormattedComment"> Don&#x27;t know why you want that but there is openrsync<br> </div> Fri, 06 Nov 2020 17:46:40 +0000 Deprecating scp https://lwn.net/Articles/836496/ https://lwn.net/Articles/836496/ mirabilos <div class="FormattedComment"> It would also be great if rsync could be relicenced to a BSD-style licence :/<br> </div> Fri, 06 Nov 2020 17:27:25 +0000 rsync options exist for a reason https://lwn.net/Articles/836495/ https://lwn.net/Articles/836495/ david.a.wheeler <div class="FormattedComment"> I disagree, the many other rsync options exist for a reason. I have a situation where I use three lines of options for rsync (!).<br> <p> The world needs a &quot;simple replacement for cp that copies remotely&quot; and a &quot;sophisticated tool for remote synchronization&quot;. They don&#x27;t need to be the same tool, and historically have been different. I&#x27;d like to see a more secure version of the first category. In the first category most people don&#x27;t really need the scp *protocol*, they just need a simple replacement for &quot;cp&quot; that works remotely. That is, it&#x27;s the CLI interface, not the protocol, that matters.<br> </div> Fri, 06 Nov 2020 17:02:06 +0000 Deprecating scp https://lwn.net/Articles/836489/ https://lwn.net/Articles/836489/ lwn@pck.email <div class="FormattedComment"> HN comments are a dumpster fire on this one but this sort of stuff is why I pay for LWN, nice job.<br> </div> Fri, 06 Nov 2020 16:00:44 +0000 rsync remote-to-remote https://lwn.net/Articles/836464/ https://lwn.net/Articles/836464/ bkw1a <div class="FormattedComment"> I love rsync and use it many times a day, but my fingers still sometimes type scp for single file transfers. One way in which rsync let me down recently was this: One of my users was asking about how to efficiently transfer files between two remote servers. I confidently told him he could do this with rsync, like &quot;rsync -rv remote1:somewhere/ remote2:somewhere/&quot;. I was surprised and embarrassed to find that this doesn&#x27;t actually work. I must have been thinking of scp, where such a thing really does work.<br> </div> Fri, 06 Nov 2020 14:23:53 +0000 Deprecating scp https://lwn.net/Articles/836419/ https://lwn.net/Articles/836419/ IanKelling <div class="FormattedComment"> <font class="QuotedText">&gt; Not sure why you consider that nonfree?</font><br> <p> The page has no license. Looking more closely, there is a link to a terms and conditions, which states &quot;Red Hat original content&quot; is CC-BY-SA, but not other content. This page has no indication that it is &quot;Red Hat original content&quot; so, still no license which means nonfree.<br> </div> Fri, 06 Nov 2020 13:51:09 +0000 Deprecating scp https://lwn.net/Articles/836411/ https://lwn.net/Articles/836411/ nix <div class="FormattedComment"> No, and apparently it never will use reflinks because it is out of scope. It also can&#x27;t copy the filesystem-specific attributes (like the immutable flag) set via chattr/lsattr. Patches to do this have been proposed and rejected :(<br> </div> Fri, 06 Nov 2020 12:50:34 +0000 Deprecating scp https://lwn.net/Articles/836410/ https://lwn.net/Articles/836410/ ptman <div class="FormattedComment"> Here&#x27;s a good explanation: <a href="https://news.ycombinator.com/item?id=25006723">https://news.ycombinator.com/item?id=25006723</a><br> </div> Fri, 06 Nov 2020 12:49:14 +0000 Deprecating scp https://lwn.net/Articles/836408/ https://lwn.net/Articles/836408/ Wol <div class="FormattedComment"> Dunno what option it is (and I don&#x27;t think it&#x27;s -a), but rsync does have an option that says &quot;only write stuff that&#x27;s changed&quot;. Great for making backups on a journalled file system as each snapshot is a full backup, but apart from the first only takes up the space of an incremental... (and yes for large files eg databases it only writes that part of the file)<br> <p> Cheers,<br> Wol<br> </div> Fri, 06 Nov 2020 12:48:55 +0000 Deprecating scp https://lwn.net/Articles/836409/ https://lwn.net/Articles/836409/ nix <div class="FormattedComment"> I&#x27;m now tempted to write an SCP entry to get the scp protocol into the Foundation as an SCP object itself. With the backtick-execution semantics, it would hardly need any tweaking at all to make it horrible and creepy enough... :)<br> </div> Fri, 06 Nov 2020 12:47:54 +0000 Deprecating scp https://lwn.net/Articles/836403/ https://lwn.net/Articles/836403/ dezgeg <div class="FormattedComment"> SFTP server is not available everywhere either (in embedded systems especially).<br> </div> Fri, 06 Nov 2020 12:19:32 +0000 Deprecating scp https://lwn.net/Articles/836404/ https://lwn.net/Articles/836404/ gerdesj <div class="FormattedComment"> &quot;I&#x27;ve thought of a valid use for this kind of behaviour that someone might actually be relying on. :-)<br> ...<br> (i.e. ensure that the destination directory exists before writing the file to it)&quot;<br> <p> Sounds like a job for smkdir <br> </div> Fri, 06 Nov 2020 11:47:40 +0000 Deprecating scp https://lwn.net/Articles/836401/ https://lwn.net/Articles/836401/ rahulsundaram <div class="FormattedComment"> Fedora Magazine content is <a href="http://creativecommons.org/licenses/by-sa/3.0/">http://creativecommons.org/licenses/by-sa/3.0/</a> Not sure why you consider that nonfree?<br> <p> </div> Fri, 06 Nov 2020 11:16:42 +0000 Deprecating scp https://lwn.net/Articles/836392/ https://lwn.net/Articles/836392/ CChittleborough <a href="https://en.wikipedia.org/wiki/SCP_Foundation">I see what you did there.</a> <p> Warning: the SCP wiki can entertain^Wdistract you for <em>hours</em>. Fri, 06 Nov 2020 10:58:00 +0000 Deprecating scp https://lwn.net/Articles/836400/ https://lwn.net/Articles/836400/ grawity My trick is to use "cp -a source/. dest/" to always get just the contents. Fri, 06 Nov 2020 10:52:30 +0000 Deprecating scp https://lwn.net/Articles/836399/ https://lwn.net/Articles/836399/ grawity PuTTY has already done so; its "pscp" command uses SFTP when it can. The SSH.COM "scp2" is an SFTP client as well. OpenSSH is the only one who hasn't. Fri, 06 Nov 2020 10:51:44 +0000 Deprecating scp https://lwn.net/Articles/836396/ https://lwn.net/Articles/836396/ ptman <div class="FormattedComment"> IIRC SFTP is more like NFS than FTP and latency limits its bandwidth quite a lot.<br> </div> Fri, 06 Nov 2020 10:44:11 +0000 Deprecating scp https://lwn.net/Articles/836394/ https://lwn.net/Articles/836394/ gray_-_wolf <div class="FormattedComment"> <font class="QuotedText">&gt; tl;dr: cp -R is insane, use rsync -a. Using it more than once is not just safer it&#x27;s also much faster of course: it can be used as an actual backup tool.</font><br> <p> Does rsync -a also use CoW the way cp does as long as the filesystem supports it?<br> </div> Fri, 06 Nov 2020 10:32:52 +0000 rsync -a is not the same as cp -R https://lwn.net/Articles/836390/ https://lwn.net/Articles/836390/ taneli <div class="FormattedComment"> Indeed, you will need -H to preserve hard links.<br> </div> Fri, 06 Nov 2020 10:01:02 +0000