So you would need to brute force SSH (which is already decently hard) AND brute force the IP every 30 seconds.
This would stop the constant and relentless failed auth logs. (Yes there are other methods, but this one is novel and good as well)
But I wasn't aware that TOTP was brute-forcable. What is the mechanism to achieve this (given only a set of IP address and their timestamps)?
There's no way to lock out after N failures or even to rate limit attempts.
Given it’s a single machine with a /80, couldn’t the machine rate limit attempts to any IP in the /80? Ie rate limit by source, and separately rate limit by destination. Cover both bases.
https://github.com/aidansteele/ipv6-ghost-ship/blob/main/mai...
Running anything like fail2ban on IP address misses would stop brute forcing in its tracks.
None of this fixes even a passive mitm attack, but it's still better.
Actually, occurs to me now, the brute force approach could still be used then, so that does have to be mitigated separately (which is possible).
That is a pretty bad idea in practice though, the issue(s) being: IP addresses are public (especially to anyone in the middle of your connection) and it's trivially brute-forceable.