import data from a CSV file hosted on an external SFTP server

Is it possible to create a scheduled task to retrieve the data from a CSV file that is hosted on a 3rd party server (SFTP) and import the contents?

We would also like to send similar data in a CSV back to that same server.

I believe there are some restrictions, but wondering if anyone here has found alternative coding methods to those?