The SFTP protocol does not work by sending FTP protocol's commands over SSH shell. SFTP and FTP are two completely different file transfer protocols, despite the similar name.
To have Rebex File Server library provide a SFTP server for accessing a could-based file system, use Rebex.FileSystem assembly and its virtual file system support. Make sure to try the FileServerCustomFS sample that comes with Rebex File Server install package.