Open nodeg opened 1 year ago
Hum. Interesting. I wonder what motivated that deprecation.
The commit that indroduced that said:
See also https://lists.mindrot.org/pipermail/openssh-unix-dev/2021-September/039616.html Fixes #91
Issue 91 mentions the following:
The latest version of OpenSSH 8.7 was released with a possibility to use SCP commandline tool with SFTP protocol under the hood to provide simpler transition for users and to avoid messing with the ancient protocol. The SCP caused a lot of pain, CVEs and issues also for libssh so we should mark the SCP API deprecated for next release to discourage its use. In the long term, we should also consider disabling it at a build time as an option to remove it in the future.
According to libssh, SCP is deprecated and should be replaced with SFTP.
https://git.libssh.org/projects/libssh.git/tree/src/scp.c#n40
When building twopence, the deprecation warnings can also be seen: