masaeedu / win-sshfs

Fork of http://code.google.com/p/win-sshfs/
BSD 3-Clause "New" or "Revised" License
26 stars 9 forks source link

[Suggestion] Specify which keyfile format to use #25

Open m-p-3 opened 6 years ago

m-p-3 commented 6 years ago

Hi, I've been trying to authenticate using my private key file, generated by PuTTYGen without success. I also tried several export options without success either (Conversions → Export OpenSSH key, Export OpenSSH key (force new file format), Export ssh.com key).

Which keyfile format is the program expecting?

Other than that, would it be possible to have the program check if a valid key is currently loaded in Pageant, without the need to specify the keyfile location?

masaeedu commented 6 years ago

Hi @m-p-3. The required format is PEM, which is what you should be getting after performing the conversion you described. Are you explicitly passing your key? The tool doesn't look in the default locations, it expects you to pass a PEM file explicitly using the -i argument.

I haven't looked into interfacing with Putty or Pageant because I don't use these tools, so I'm not sure how a third party tool is supposed to interface with them. If you're interested in adding it yourself a PR would be welcome.