Re:SSH Cheat Sheet
by neurostimulant on Friday July 08, 2022 @06:30PM
(#32028440)
scp 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.
Re:SSH Cheat Sheet
by dhsysusbsjsi on Friday July 08, 2022 @08:27AM
(#32026328)
As 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.
Re:SSH Cheat Sheet
by hotpotamus on Friday July 08, 2022 @08:34AM
(#32026422)
I 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.
Re:SSH Cheat Sheet
by LanternLight83 on Friday July 08, 2022 @05:21PM
(#32027296)
IIRC, wasn't scp going to be rewritten in terms of SFTP behind the scenes?
Re:SSH Cheat Sheet
by thefilmore on Friday July 08, 2022 @04:53PM
(#32026913)
The scp command uses the SFTP protocol since OpenSSH 9.
Re:SSH Cheat Sheet
by marcobehler on Friday July 08, 2022 @08:11AM
(#32026131)
Didn't know that! Thank you, will update the post.
[1] https://lwn.net/Articles/835962/
[2] https://man.openbsd.org/sftp.1