leocheang422 / win-sshfs

Automatically exported from code.google.com/p/win-sshfs
0 stars 0 forks source link

win-sshfs does not recognized my private key file. #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I put my private key file into win-sshfs, it says: "Invalid private key 
file."

I've checked the win-sshfs source code. In PrivateKeyFile.cs, line 25, it says:
    ... (?<data>([a-zA-Z0-9/+=]{1,64}\r?\n)+) ...
That means the max length of each data line is 64. But mine is over 64.

When I split my key file into lines with fewer characters, it works perfectly.

Maybe change the regex would be a good idea to enhance compatibility.

Original issue reported on code.google.com by halfju...@gmail.com on 5 Apr 2012 at 3:36

GoogleCodeExporter commented 8 years ago

Original comment by mladenov...@gmail.com on 17 Apr 2012 at 1:03

GoogleCodeExporter commented 8 years ago

Original comment by mladenov...@gmail.com on 17 Apr 2012 at 1:04

GoogleCodeExporter commented 8 years ago

Original comment by mladenov...@gmail.com on 28 May 2012 at 5:37