import ftplib

# SFTP credentials
hostname = '10.108.10.16'
port = 22
username = 'sac5wh01'
password = 'HPtYD9M4qmfnWF25'

# Establish an FTP over SSH connection
ftp = ftplib.FTP_TLS()
ftp.connect(hostname, port)
ftp.login(username, password)

# Switch to the SFTP subsystem
ftp.sendcmd('sftp')

# List files in the remote directory
# remote_path = '/kcc6/633/interface/WMS/common/handshakes/'
# files = ftp.nlst(remote_path)
# for file in files:
#     print(file)