4 ms·
PSA: scp is deprecated.[1] Please use sftp.[2] [1] https://lwn.net/Articles/835962/ https://lwn.net/Articles/835962/ [2] https://man.openbsd.org/sftp.1 https:
by acatton 4y ago
PSA: scp is deprecated.[1] Please use sftp.[2]
[1] https://lwn.net/Articles/835962/ https://lwn.net/Articles/835962/
[2] https://man.openbsd.org/sftp.1 https://man.openbsd.org/sftp.1
- marcobehler 4y agoDidn't know that! Thank you, will update the post.
- dhsysusbsjsi 4y agoAs an scp user, this article was not a great advertisement for sftp. It listed a whole host of problems that don't apply to me, then finished with: "[sftp] disadvantage is a much less friendly user experience, especially in cases where one simply wants to type a command and see files move." I just want to copy a file. I'll keep using scp.
- hotpotamus 4y agoI had that thought too, but rsync should mostly replace it. I have run into situations where rsync isn't available so scp -r has been helpful though.
- thefilmore 4y agoThe scp command uses the SFTP protocol since OpenSSH 9.
- LanternLight83 4y agoIIRC, wasn't scp going to be rewritten in terms of SFTP behind the scenes?
- neurostimulant 4y agoscp uses sftp protocol by default since v8.8. You'll need to pass `-O` parameter to explicitly use the legacy scp protocol if you still need it for backward compatibility reason.