SFTP connection to get and post file via php code in SugarCloud

1) Is it possible to upload a csv file on sftp via php code inside SugarCloud?

2) Is it possible to get the csv file from sftp server via php code inside SugarCloud.

Second question is similar to  connect sftp and get csv file from folder and then import into sugarcrm or read data from csv and update into sugarcrm 

Thanks.