Is it possible to connect to an SFTP Server from Databricks? I have looked at previous questions/answers and according to the a SO question here
It would it isn't possible to connect using Spark (at least it wasn't possible over a year ago according to @AlexOtt)
Is this still the case?
First, install
paramikopackage in your databricks and follow below steps.Run below code for connecting to sftp server.
Then using
getfunction you can the files you want by specifying the path as below.Make sure you mention local path as above, don't use like this
dbfs:/FileStore/tables/rd.txtOutput:Then close the connection.