Functions for uploading and downloading files via SFTP protocol