I am trying to move file from SFTP location to S3 location by using Paramiko library. The details given for the connection to SFTP is hostname, port, username and key_filename. The private key is a .pem file and I can't figure out a way to give the path to .pem file in key_filename parameter.
Please help!