4 ms·
Wasn't this kind of bug part of the reasoning to make scp use stfp in the background, instead of using its own scp protocol?
by blueflow 4y ago
Wasn't this kind of bug part of the reasoning to make scp use stfp in the background, instead of using its own scp protocol?
- water8 4y agoScp does not use sftp in the background. Scp is generally faster than sftp but lacks many capabilities like remote dir listing
- blueflow 4y agoIt does since recently, check the -O option in the manpage.
- water8 4y agoNo it doesn’t SCP has no support for directory listing. The -o flag only controls the security layer which is openSSL just like SFTP. So you established the S’s are the same, But the P’s (protocol) are different. A protocol is like get post put… Totally separate from security
- blueflow 4y agohttps://www.openssh.com/txt/release-9.0 https://www.openssh.com/txt/release-9.0 : > This release switches scp(1) from using the legacy scp/rcp protocol to using the SFTP protocol by default. From the scp(1) manpage: > -O: Use the original SCP protocol for file transfers instead of the SFTP protocol. Forcing the use of the SCP protocol may be necessary for servers that do not implement SFTP, for backwards-compatibility for particular filename wildcard patterns and for expanding paths with a ‘~’ prefix for older SFTP servers. This mode is the default.