Skip to main content

I am trying to upload output geotiff files to a folder on a remote site via SFTP from a FME Desktop workspace. The FTPCaller transformer supports the SFTP protocol and I make the assumption that uploading files to an empty folder should work.

My GeoTiff files are first written using a FeatureWriter. The FTPCaller comes next and fetches the GeoTiff file with the "Upload from a File" transfer type.

The translation fails with "Login denied" probably because there is a missing piece of info.

Actually the process works fine on the same machine using Filezilla. I just needed to provide the RSA key to Filezilla in a PEM file and the connection + file transfer work like a charm.

Of course I would like to allow FME to take care of this upload step without depending on Filezilla.

How should I set up the authentication parameter in order to make this possible?

The info that I provided to Filezilla to make the connection work is the following:

  • host
  • username
  • port
  • pem file containing RSA key

Thank you!

Olivier

Just checking you're meaning SFTP rather than SMTP (SMTP is for sending emails).

 

It looks like hte OOTB FTP stuff in FME only really supports Username and Password combos. You might have to go down the route of using Python to upload the file if you can't use a password

https://stackoverflow.com/questions/53875954/connect-to-sftp-with-key-file-using-python-pysftp


Just checking you're meaning SFTP rather than SMTP (SMTP is for sending emails).

 

It looks like hte OOTB FTP stuff in FME only really supports Username and Password combos. You might have to go down the route of using Python to upload the file if you can't use a password

https://stackoverflow.com/questions/53875954/connect-to-sftp-with-key-file-using-python-pysftp

Hi @hkingsbury​ !

Thanks for the catch. Indeed I meant SFTP. I have now made the correction. Later I will look closer to what is proposed in your link. Thank you very much!


Reply