News for hackers. Stuff that matters.
Re:Deprecating scp by eptcyka on Friday November 06, 2020 @07:17AM (#25007078)
I really want a way to expose filesystem contents to someone via SSH without giving them the ability to execute arbitrary code. Bonus points for confining access to specific directories.
Re:Deprecating scp by kevinoid on Friday November 06, 2020 @08:07AM (#25007315)
https://github.com/scponly/scponly can be used to prevent command execution and supports chroot. It avoids the server-side scp protocol security issues by rejecting shell metacharacters in commands. It also supports sftp.

If you don't need scp, you could force the use of internal-sftp <https://serverfault.com/a/354618>.

Re:Deprecating scp by LinuxBender on Friday November 06, 2020 @10:09AM (#25008108)
SFTP chroot solves that. You can use the lftp client with the sftp and mirror subsystem to replicate the behavior of rsync. [1]

[1] - https://serverfault.com/questions/836103/replace-scp-with-sf...

Re:Deprecating scp by pseudalopex on Friday November 06, 2020 @07:35AM (#25007161)
Why not SFTP?