Hello,
I am using Apache SSHD 0.4.0 and I am struggling to get a PublickeyAuthenticator implementation to work. My goal is to authenticate the connecting user against public keys in the systems authorized_keys file. For that I am parsing the authorized_keys file and decode the Base64 part of each line to get the public key in it’s original encoding which I then compare to the public key from the authenticate() interface method. Unfortunately the two public keys are not the same resulting in a failed authentication. There is currently only one public/private key pair in the testing environment so the authentication should be successful. I tried searching for an example implementation but couldn’t find one. I posted this question on stackoverflow.com too but with no luck. Instead someone suggested to ask here on the mailing list. Could anyone on the list could give me a hint on what I am missing or if there is a better approach implementing a public key authenticator? Thanks, Sascha
