Remix.run Logo
▲ mscdex 42 minutes ago

As an SSH server, there's nothing stopping you from always rejecting (or always allowing) those public key checks and only doing any work when sent the full public key authentication request (with the signature).

▲drum55 32 minutes ago | parent [-]

The software doesn’t do that now though, at least openssh doesn’t. It would break a lot of people’s setups to change that assumption out of the blue.

▲mscdex 24 minutes ago | parent [-]

If you accepted all public key checks it shouldn't break anything. It's just an optimization for the client as the server needs to handle full public key authentication requests anyway.

Besides, there are additional (server-side) safeguards to prevent someone from doing these sorts of mass public key checks using anyone's public key, including (but not limited to) IP whitelisting and port knocking.