net-ssh / net-sftp

Pure Ruby implementation of an SFTP (protocols 1-6) client.
http://net-ssh.github.io/
MIT License
286 stars 130 forks source link

Permission denied (publickey) #46

Open rgull opened 9 years ago

rgull commented 9 years ago

When convert a private key ppk file to Open SSH using PuttyGen, then this exception appear "Permission denied (publickey)" on client.Connect() method

rrodriguez1975 commented 7 years ago

I have same problem. How did you solve it? could you share? I have solved it. It seems like when specifying private key file from C# code, this private key file must be in OpenSSH format. Other formats don't work.