I am trying to create a python script with Paramiko Lib to upload a file on sftp which uses a "ppk" file and a passphrase to connect.
Unfortunately I cant crack the document or found anything which can connect sftp with ppk files.
Additional details: SFTP can manually be connected with Filezilla, WinSCP is not allowing it.
Here is the code I can go upto only. Please help!
k = paramiko.RSAKey.from_private_key_file("/key.ppk")
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect( hostname = "ftp.example.com", username = "user", pkey = k,passphrase="somephrase" )
Well that's the least of the problems, I need to upload afterwards when it gets connected.