Neat stuff. Be aware though that by doing this you expose yourself to revealing valid credentials.
Let's say that you have a user "bob". bob has the password "iamyouruncle". One day bob makes a typo in his password, spelling it as "iamyouurncle". Username and mistyped password is shown on this web page and visitors could be able to deduce the correct password.
Now you may say "oh but this is actually not the real sshd used by users, the real one is running on port 2022 instead of on port 22". Not much better. bob could be on a host where he doesn't have his regular .ssh/config which specifies to use port 2022 so now when he does ssh, he hits port 22 and gives up his real credentials to it.
You may then say, "no matter, everybody is actually using pubkeys, not passwords" but to that I say that still, sometimes people might give their password, either because they've lost their keypair and are trying to get in or because they do so without thinking.
These are my thoughts on the matter. As I said, though, I think what you've made is neat, I just want people to think about the potential consequences before they go ahead and set up something similar.
Let's say that you have a user "bob". bob has the password "iamyouruncle". One day bob makes a typo in his password, spelling it as "iamyouurncle". Username and mistyped password is shown on this web page and visitors could be able to deduce the correct password.
Now you may say "oh but this is actually not the real sshd used by users, the real one is running on port 2022 instead of on port 22". Not much better. bob could be on a host where he doesn't have his regular .ssh/config which specifies to use port 2022 so now when he does ssh, he hits port 22 and gives up his real credentials to it.
You may then say, "no matter, everybody is actually using pubkeys, not passwords" but to that I say that still, sometimes people might give their password, either because they've lost their keypair and are trying to get in or because they do so without thinking.
These are my thoughts on the matter. As I said, though, I think what you've made is neat, I just want people to think about the potential consequences before they go ahead and set up something similar.