So, i've been having this problem for a while now.
Notepad++ NppFTP plugin fails to connect to server via SFTP with "[SFTP] Error during authentication: Invalid private key file". But the key file is 100% correct and i'm connecting fine with WinSCP.
Any solutions?
The solution for me was to use puttygen to export a .ppk version of my private key to OpenSSH as follows:
This was weird seeing as my .ppk was converted from a private key generated by OpenSSH itself.
I think it has to do with the fact that my original key starts with
---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
whereas the exported key starts with
-----BEGIN RSA PRIVATE KEY-----