On my LineageOS device, /product/bin contains scp, sftp, ssh, sshd, and ssh-keygen along with a startup script.
In f-droid, there is also a "primitive FTP server" that includes an SFTP, but that probably gets killed unless you are very careful.