View Single Post
  #6  
Old 06-10-2019, 10:59 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,997
Hi Vikram,

To clarify, I have not been able to use pysftp in SecureCRT/Windows.

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)
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote