How to get freeSSHd public key authentication to work

I was looking for a Windows SSH server implementation to use in conjunction with Mercurial when I stumbled upon freeSSHd. Setting it up was a matter of minutes… except that I could not get public key authentication to work. After countless attempts and many a Google search I eventually solved my problem, thanks to this step by step IBM tutorial.

Unfortunately when used in non-interactive mode freeSSHd doesn’t spawn cmd.exe, which makes it unsuitable for applications that expect their remote counterparts to be on the path.

Advertisement

2 Responses to “How to get freeSSHd public key authentication to work”

  1. mikemurko Says:

    Fantastic thanks for the help! For me the trick was that the filename of the public key needs to be exactly = to the username for that key (with no file extension). I was used to using keys ending in “.pub”.

  2. Live Says:

    Still not working for me says

    Server refused public-key signature despite accepting key!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.