View Single Post
Old 06-10-2019, 11:59 AM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,544
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:

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

# Prints out the directories and files, line by line
for i in data:

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote