On my Ubuntu Linux VM, I installed pysftp using pip and then just ran a simple script I found online, altering the print statement to a MessageBox instead:

Code:

import pysftp
srv = pysftp.Connection(host="my_host", username="my_username", password="my_pwd")
# Get the directory and file listing
data = srv.listdir()
# Closes the connection
srv.close()
# Prints out the directories and files, line by line
for i in data:
crt.Dialog.MessageBox(i)