freedomofpress / securedrop

GitHub repository for the SecureDrop whistleblower platform. Do not submit tips here!
https://securedrop.org/
Other
3.62k stars 685 forks source link

Update securedrop admin tools to use sftp with Ansible instead of scp #7126

Open zenmonkeykstop opened 8 months ago

zenmonkeykstop commented 8 months ago

Securedrop servers use a hardened sshd config that disables sftp. We rely on scp instead for Ansible's communications from workstations to servers. With OpenSSH 9, scp is on the road to deprecation, so we should use sftp instead. This would most likely involve:

legoktm commented 2 months ago

From what I can tell we need to add at least Subsystem sftp /usr/lib/openssh/sftp-server to our sshd_config. Not sure if there's more than that.