I'm having trouble trying to close a Paramiko SFTP connection. Even though I call close the connection is still hanging, I check by running netstat (Windows):
netstat -an | find ":22"
and the python code:
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.MissingHostKeyPolicy() )
ftp = ssh.open_sftp()
time.sleep(5)
ftp.close()
What is the proper way to close Paramiko SFTP connection that works?
thanks