I've set OpenSSH server with private/public keys, with password login disabled.
I was wondering if there was a way to not even show the 'login:' prompt when someone without a key tries to connect.
Okay ... There seems to be some confusion as to what I'm trying to achieve. So, here's a better explanation (I hope) ...
Client with key connects, and goes through the process:
login as: username BANNER Authenticating with public key "Key name" Passphrase for key "key name": ******* Welcome username@hostname:~$
Client without key connects, and goes through process:
login as: username BANNER Server refused our key
What I want
client without key connects, and goes through process:
No key, go away.