pysftp AuthenticationException while connecting to server with private key
I could finally connect.
Converted the file to a .pem
file using PuTTY. Passed this .pem
file and kept the rest of the parameters the same as before.
pysftp.Connection(host='hostname', username='username',
password='password', private_key='path to .pem file')
Hope this helps someone having similar issues.