final SshSession sd = session.getAttribute(SshSession.KEY);
if (PeerDaemonUser.USER_NAME.equals(username)) {
if (myHostKeys.contains(suppliedKey)
|| getPeerKeys().contains(suppliedKey)) {
PeerDaemonUser user = peerFactory.create(sd.getRemoteAddress());
return success(username, session, sd, user);
} else {
sd.authenticationError(username, "no-matching-key");
return false;